[Bug preprocessor/43027] #pragma rejected inside enum defn
PHHargrove at lbl dot gov
gcc-bugzilla@gcc.gnu.org
Thu Feb 11 02:09:00 GMT 2010
------- Comment #2 from PHHargrove at lbl dot gov 2010-02-11 02:09 -------
(In reply to comment #1)
> Looks related to PR 37267 but that talks about #pragma inside struct. Hmm.
Indeed this shares w/ PR 37267 the fact that the original code looks roughly
like:
enum {
#include "enum_body.h"
};
and in my case the #pragma was inserted by a program that processes a .i file
and inserts #pragmas following #line directives that match certain criteria.
If, as with PR 37267, it is decided to resolve this as INVALID, I'd appreciate
a reference to the rules for what constitutes legal placement of #pragmas in
general (i.e. I don't need all the pragma-specific rules for placement). Then
I can (hopefully) modify my .i-munging code to conform.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43027
More information about the Gcc-bugs
mailing list