This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33744] New: > within function-style cast incorrectly parsed as closing template angle bracket
- From: "mdorey at bluearc dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Oct 2007 03:10:14 -0000
- Subject: [Bug c++/33744] New: > within function-style cast incorrectly parsed as closing template angle bracket
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This compiled with 3.3:
template <bool cond>
struct A {
};
A< bool (2 > 1) > x;
It doesn't compile with at least some later versions, including 3.4 and 4.2.1,
with:
x.cpp:4: error: template argument 1 is invalid
x.cpp:4: error: invalid type in declaration before ';' token
Rejects-valid regression in the new parser in 3.4?
--
Summary: > within function-style cast incorrectly parsed as
closing template angle bracket
Product: gcc
Version: 4.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mdorey at bluearc dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33744