[Bug c/27646] compiling very simple flex generated code results in global variabl error with GCC 4.0.1

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed May 17 19:06:00 GMT 2006



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-05-17 19:06 -------
printf("%d = ret, glo = %d", yylex(), glo);

The C standard does not specify if yylex() or glo is evulated first.
So you are running into that effect and this is code undefined.

See PR 11751 for future reference.

*** This bug has been marked as a duplicate of 11751 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27646



More information about the Gcc-bugs mailing list