[Bug c++/20665] New: poor diagnostic
igodard at pacbell dot net
gcc-bugzilla@gcc.gnu.org
Mon Mar 28 02:04:00 GMT 2005
In:
template<typename T> class foo {}
enum A{b, c};
gets you:
~/ootbc/members/bin$ g++ foo.cc
foo.cc:2: error: template declaration of `enum A'
foo.cc:2: confused by earlier errors, bailing out
The actual error is a missing semicolon.
Ivan
--
Summary: poor diagnostic
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20665
More information about the Gcc-bugs
mailing list