C/C++ Programmer's Guide (G06.25+)

TNS C Compiler Messages
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
20-8
Types of Compiler Messages
38
In a body of compound statements, the number of opening left braces and closing right
braces was not equal. This error can occur if the compiler got “out of phase” due to a
previous error.
39
One of the C language reserved words appeared in an invalid context (for example, as
an object name).
40
The compiler detected a break statement that was not within the scope of a while,
do, for, or switch statement. This error can occur due to an error in a preceding
statement.
41
The compiler encountered a case statement outside the scope of a switch
statement. This error can occur due to an error in a preceding statement.
42
The expression defining a case value did not evaluate to an int constant.
43
The compiler encountered a case statement that defined a constant value already
used in a previous case statement within the same switch statement.
unbalanced braces
invalid use of keyword
break not inside loop or switch
case not inside switch
invalid case expression
duplicate case value