This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12659] New: braces & default constructor & greater sign -> parse error
- From: "joerg dot richter at pdv-fs dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Oct 2003 14:31:40 -0000
- Subject: [Bug c++/12659] New: braces & default constructor & greater sign -> parse error
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12659
Summary: braces & default constructor & greater sign -> parse
error
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: joerg dot richter at pdv-fs dot de
CC: gcc-bugs at gcc dot gnu dot org
Just try to compile this:
----
int main()
{
( int() > 0 );
}
----
This bug is at least in 3.2.1 and 3.3.1
Workarounds:
- remove braces
- exchange > with <