This is the mail archive of the gcc-bugs@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]

[Bug c/67784] Incorrect parsing when using declarations in for loops and typedefs


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67784

--- Comment #1 from Jacques-Henri Jourdan <jacques-henri.jourdan at inria dot Fr> ---
My explanation of the problem is that the parser has to do a lookahead to make
sure that there is no "else" associated to the selection statement. However,
this lookahead is done in the wrong context, which make T look like a variable
(while it is actually a type name).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]