This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13536] New: [3.4 regression] parse error when parenthesized construction-style cast contains old-style cast
- From: "dbaron at dbaron dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Dec 2003 23:47:34 -0000
- Subject: [Bug c++/13536] New: [3.4 regression] parse error when parenthesized construction-style cast contains old-style cast
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following expression:
return (int((char*)0));
yields the following errors on the gcc mainline:
$ /usr/local/gcc-3.4-20031231/bin/g++ parse.cpp
parse.cpp: In function `int main()':
parse.cpp:3: error: expected `)'
parse.cpp:3: error: expected `)'
parse.cpp:3: error: expected `;'
parse.cpp:3: error: expected primary-expression before ')' token
parse.cpp:3: error: expected `;'
It worked fine on the mainline on 20031002.
--
Summary: [3.4 regression] parse error when parenthesized
construction-style cast contains old-style cast
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dbaron at dbaron dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13536