public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/14403] New: Syntax error befor `;' reported where there is no semicolon
@ 2004-03-03 8:48 gwesp at flyelite dot ch
2004-03-03 16:11 ` [Bug c++/14403] " bangerth at dealii dot org
0 siblings, 1 reply; 2+ messages in thread
From: gwesp at flyelite dot ch @ 2004-03-03 8:48 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/14403] Syntax error befor `;' reported where there is no semicolon
2004-03-03 8:48 [Bug c++/14403] New: Syntax error befor `;' reported where there is no semicolon gwesp at flyelite dot ch
@ 2004-03-03 16:11 ` bangerth at dealii dot org
0 siblings, 0 replies; 2+ messages in thread
From: bangerth at dealii dot org @ 2004-03-03 16:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-03-03 16:11 -------
Confirmed, but already fixed in 3.4 and mainline due to the new parser:
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc: In constructor `foo::foo()':
x.cc:2: error: expected `(' before '[' token
x.cc:2: error: expected `{' before '[' token
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14403
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-03 16:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-03 8:48 [Bug c++/14403] New: Syntax error befor `;' reported where there is no semicolon gwesp at flyelite dot ch
2004-03-03 16:11 ` [Bug c++/14403] " bangerth at dealii dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).