This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30896] New: Broken diagnostic for complex template parameter
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Feb 2007 21:11:30 -0000
- Subject: [Bug c++/30896] New: Broken diagnostic for complex template parameter
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The diagnostic fo the following invalid code snippet is broken
since GCC 3.0. GCC 2.95.x even crashed.
=====================================
template<int> struct A {};
A<0i> a;
=====================================
bug.cc:3: error: could not convert template argument '#'complex_cst' not
supported by dump_expr#<expression error>' to 'int'
bug.cc:3: error: invalid type in declaration before ';' token
--
Summary: Broken diagnostic for complex template parameter
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: diagnostic, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30896