This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14403] New: Syntax error befor `;' reported where there is no semicolon
- From: "gwesp at flyelite dot ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Mar 2004 08:48:22 -0000
- Subject: [Bug c++/14403] New: Syntax error befor `;' reported where there is no semicolon
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
G++ hallucinates and imagines a semicolon on line 2
although there is none:
% cat wrong-syntax-error.cpp
struct foo {
foo() : f[ 0 ]( 0 ) {}
int f[ 1 ] ;
} ;
% g++ -c wrong-syntax-error.cpp
wrong-syntax-error.cpp: In constructor `foo::foo()':
wrong-syntax-error.cpp:2: error: parse error before `;' token
% g++ (GCC) 3.3.1 (SuSE Linux)
--
Summary: Syntax error befor `;' reported where there is no
semicolon
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gwesp at flyelite dot ch
CC: gcc-bugs at gcc dot gnu dot org,gwesp at flyelite dot ch
GCC host triplet: Suse Linux 9.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14403