This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/50387] New: Doesn't process "_Pragma" when expanding a token sequence for #include
- From: "schaub.johannes at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 Sep 2011 20:20:40 +0000
- Subject: [Bug preprocessor/50387] New: Doesn't process "_Pragma" when expanding a token sequence for #include
- Auto-submitted: auto-generated
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.