This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49729] New: diagnostic cascade
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 13 Jul 2011 09:24:22 +0000
- Subject: [Bug c++/49729] New: diagnostic cascade
- Auto-submitted: auto-generated
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 :-)