This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
The first observation is that cp_parser_implicitly_scoped_statement can be tweaked such that the return type is void rather than tree, as its result is never used.
used to enter a switch statement that determines if the following keyword or token can't possibly need its own scope. For example, ";" but hopefully as RID_IF and many of the remaining C++ constructs.
From my limited understanding of C++ parsing, statements such as RID_IF, RID_WHILE, RID_DO and RID_FOR don't/can't use an immediately enclosing scope, as they open new scopes for their conditions and bodies.
if (x) f(3);
if (X x) ;
-- Mark Mitchell CodeSourcery, LLC mark@codesourcery.com (916) 791-8304
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |