[Bug c/37267] [4.2/4.3/4.4 Regression] #pragma inside structure initialization causes error

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Sep 3 09:49:00 GMT 2008



------- Comment #3 from jakub at gcc dot gnu dot org  2008-09-03 09:47 -------
But I'm not convinced we want to allow pragmas in this context.  While these
pragmas aren't covered by the C standard, for all the covered pragmas in there
they must appear outside of external declarations or explicit declarations and
statements inside a compound statement.  While there was a point in handling
some pragmas inside of structure/union definition, pragmas at this spot don't
serve anything useful and allowing it here would mean
basically we'd need to handle pragmas almost everywhere in the grammar.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rth at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list