[Bug c++/49729] New: diagnostic cascade
igodard at pacbell dot net
gcc-bugzilla@gcc.gnu.org
Wed Jul 13 09:24:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49729
Summary: diagnostic cascade
Product: gcc
Version: 4.4.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: igodard@pacbell.net
This code:
int main() {
for(int i = 0; i < 10; ++i)
continue);
return 0;
}
got me:
s3:~/ootbc/sim$ g++ foo.cc
foo.cc: In function ‘int main()’:
foo.cc:3: error: expected ‘;’ before ‘)’ token
foo.cc:3: error: expected primary-expression before ‘)’ token
foo.cc:3: error: expected ‘;’ before ‘)’ token
I got the idea the first time :-)
More information about the Gcc-bugs
mailing list