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 c++/66839] g++ accepts NSDMI with -std=c++98 when the intializer is a macro defined in a standard header


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() {}

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