This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66839] g++ accepts NSDMI with -std=c++98 when the intializer is a macro defined in a standard header
- From: "ensadc at mailnesia dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 28 Oct 2017 13:21:06 +0000
- Subject: [Bug c++/66839] g++ accepts NSDMI with -std=c++98 when the intializer is a macro defined in a standard header
- Auto-submitted: auto-generated
- References: <bug-66839-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66839
ensadc at mailnesia dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
--- Comment #1 from ensadc at mailnesia dot com ---
Minimum reproducer (https://wandbox.org/permlink/rSm6lgfooMFZxvsI):
// file a.h
#pragma GCC system_header
#define TEST 0
// file prog.cc
#include "a.h"
struct X {
int t = TEST;
};
int main() {}