[Bug c/37267] [4.2/4.3/4.4 Regression] #pragma inside structure initialization causes error
joseph at codesourcery dot com
gcc-bugzilla@gcc.gnu.org
Sun Sep 21 16:14:00 GMT 2008
------- Comment #5 from joseph at codesourcery dot com 2008-09-21 16:12 -------
Subject: Re: [4.2/4.3/4.4 Regression] #pragma inside structure
initialization causes error
On Sat, 20 Sep 2008, rguenth at gcc dot gnu dot org wrote:
> I agree with Jakub. Joseph - are you ok with closing this as invalid?
Yes.
I think back ends should be able to register non-deferred pragmas, which
should be allowed everywhere (and wouldn't reach the parser at all), like
the "ident" pragma of the motivating case for this PR, but it's for the
person adding such a pragma to add the facilities required. #pragma weak
is one I think it is entirely appropriate to allow only at limited places
in the grammar rather than trying to define what it means in the middle
of a declaration.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37267
More information about the Gcc-bugs
mailing list