[Bug c/67784] Incorrect parsing when using declarations in for loops and typedefs
jacques-henri.jourdan at inria dot Fr
gcc-bugzilla@gcc.gnu.org
Sun Apr 24 18:34:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67784
Jacques-Henri Jourdan <jacques-henri.jourdan at inria dot Fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #9 from Jacques-Henri Jourdan <jacques-henri.jourdan at inria dot Fr> ---
I am sorry, but it appears a similar bug is still in the 6.1 RC, with the
following variant of my first example:
typedef int T;
void f(void) {
if(sizeof(enum { T }) == 0);
T x; // T should be resolved outside of the scope of "if"
x = 0;
}
More information about the Gcc-bugs
mailing list