[Bug c++/14403] New: Syntax error befor `;' reported where there is no semicolon
gwesp at flyelite dot ch
gcc-bugzilla@gcc.gnu.org
Wed Mar 3 08:48:00 GMT 2004
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
More information about the Gcc-bugs
mailing list