This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51440] C++ compiler produces warning for an unnamed struct member: TYPE has a field FIELD whose type uses the anonymous namespace
- From: "blue.dragan+gcc at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 08 Dec 2011 01:04:18 +0000
- Subject: [Bug c++/51440] C++ compiler produces warning for an unnamed struct member: TYPE has a field FIELD whose type uses the anonymous namespace
- Auto-submitted: auto-generated
- References: <bug-51440-4@http.gcc.gnu.org/bugzilla/>
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.