This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug preprocessor/50387] New: Doesn't process "_Pragma" when expanding a token sequence for #include


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: unassigned@gcc.gnu.org
        ReportedBy: schaub.johannes@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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]