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

             Bug #: 50387
           Summary: Doesn't process "_Pragma" when expanding a token
                    sequence for #include
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: schaub.johan...@googlemail.com


The following code works fine with Clang and as far as I can see, C++11
requires this to work (modulo the pragma's content interpretation):

   #define GET(H) _Pragma("diagnostic push") <H>
   #include GET(stdio.h)

The code I'm working on uses this feature to implement something and it would
be nice if GCC would support this too.

Reply via email to