tcc_statement vs. tcc_expression in the C++ frontend
Gabriel Dos Reis
gdr@cs.tamu.edu
Sat Apr 23 18:27:00 GMT 2005
Ian Lance Taylor <ian@airs.com> writes:
| The description of tcc_statement in tree.h says "A statement
| expression, which have side effects but usually no interesting value."
|
| There are a number of entries in cp/cp-tree.def which are marked as
| tcc_expression, although they seem to me to be better described as
| tcc_statement, to wit:
|
| IF_STMT
| WHILE_STMT
| DO_STMT
| FOR_STMT
| BREAK_STMT
| CONTINUE_STMT
| SWITCH_STMT
|
| and perhaps also:
|
| EH_SPEC_BLOCK
| USING_STMT
| CLEANUP_STMT
| TRY_BLOCK
| HANDLER
They all should be tcc_statement, now.
I believe they were marked class 'e' back then when we did not have
a clearly marked class for statements.
-- Gaby
More information about the Gcc
mailing list