This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/41970] Unjustified "anonymous type" warning
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jan 2010 22:23:51 -0000
- Subject: [Bug c++/41970] Unjustified "anonymous type" warning
- References: <bug-41970-6594@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from igodard at pacbell dot net 2010-01-10 22:23 -------
Comeau gives this diagnostic:
"ComeauTest.c", line 1: error: use of a type with no linkage to declare a
variable
with linkage
enum {a, b, c} A = a;
^
This message give the true nature of the problem, whereas the gcc message:
foo.cc:1: warning: non-local variable ?<anonymous enum> A? uses anonymous
type
requires six posts from experts to explain.
Please recategorize this report as "diagnostic quality", confirm, and assign
it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41970