[Bug preprocessor/43027] #pragma rejected inside enum defn

2010-02-10 Thread PHHargrove at lbl dot gov


--- 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



[Bug preprocessor/43027] #pragma rejected inside enum defn

2010-02-10 Thread pinskia at gcc dot gnu dot org


--- Comment #1 from pinskia at gcc dot gnu dot org  2010-02-11 01:54 ---
Looks related to PR 37267 but that talks about #pragma inside struct.  Hmm.


-- 


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