[Bug c++/16002] New: [3.4 regression] Strange error message with new parser
rguenth at tat dot physik dot uni-tuebingen dot de
gcc-bugzilla@gcc.gnu.org
Tue Jun 15 15:31:00 GMT 2004
void foo(void)
{
double Q *= 5.0;
}
causes gcc 3.4 to print (same for mainline)
te.cpp: In function `void foo()':
te.cpp:3: error: expected primary-expression before "double"
te.cpp:3: error: expected `;' before "double"
while 3.3.4 printed the clearly superior
te.cpp: In function `void foo()':
te.cpp:3: error: parse error before `*=' token
EDG is even better
te.cpp(3): error: expected a ";"
double Q *= 5.0;
^
--
Summary: [3.4 regression] Strange error message with new parser
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rguenth at tat dot physik dot uni-tuebingen dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16002
More information about the Gcc-bugs
mailing list