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++/51440] C++ compiler produces warning for an unnamed struct member: TYPE has a field FIELD whose type uses the anonymous namespace


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

--- Comment #2 from Chris <blue.dragan+gcc at gmail dot com> 2011-12-08 01:04:18 UTC ---
When narrowing down the issue I stripped a detail which may be important. All
contents of the test.h file are in fact in extern "C" { } range. When the repro
case from my original report is modified to add extern "C" to the test.h file,
then the warning still repros.

If the warning about the unnamed structure turns out to be legitimate, then I
would indeed expect it to be signaled for non-cv-qualified types as well.

Regardless of whether the warning is legitimate or not, it would be nice to
have a way to turn it off.


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