[Bug c++/54545] New: diagnostic overflow
igodard at pacbell dot net
gcc-bugzilla@gcc.gnu.org
Mon Sep 10 22:21:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54545
Bug #: 54545
Summary: diagnostic overflow
Classification: Unclassified
Product: gcc
Version: 4.6.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: igodard@pacbell.net
This code:
enum class d(a,b,c};
gets you this:
s3:~/ootbc/personal/ivan$ g++ -std=c++0x foo.cc
foo.cc:1:1: warning: elaborated-type-specifier for a scoped enum must not use
the âclassâ keyword [enabled by default]
foo.cc:1:12: error: use of enum âdâ without previous declaration
foo.cc:1:15: error: expected â)â before â,â token
foo.cc:1:17: error: invalid type in declaration before â,â token
foo.cc:1:19: error: expected initializer before â}â token
foo.cc:1:19: error: expected declaration before â}â token
More information about the Gcc-bugs
mailing list