E2054 Misplaced else (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

The compiler encountered an else statement without a matching if statement.

Possible Causes

  • An extra "else" statement
  • An extra semicolon
  • Missing braces
  • Some syntax error in a previous "if" statement