# Fortran Wiki GFortran errors

This page is for documenting common solutions to error errors produced by the GFortran compiler.

### Unexpected junk after ELSE statement

If you receive the following error then you’ve likely forgotten the then statement following the else if:

foo.f90:10.14:

else if (x == y)
1
Error: Unexpected junk after ELSE statement at (1)