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++/41970] Unjustified "anonymous type" warning



------- 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


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