Bug 30896 - Broken diagnostic for complex template parameter
Summary: Broken diagnostic for complex template parameter
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: 4.3.0
Assignee: Not yet assigned to anyone
URL:
Keywords: diagnostic, monitored
Depends on:
Blocks:
 
Reported: 2007-02-20 21:11 UTC by Volker Reichelt
Modified: 2007-08-29 06:41 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2007-03-09 04:22:37


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volker Reichelt 2007-02-20 21:11:30 UTC
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
Comment 1 Wolfgang Bangerth 2007-03-09 04:22:37 UTC
Confirmed.
Comment 2 Paolo Carlini 2007-08-12 19:11:23 UTC
Working on it.
Comment 3 Paolo Carlini 2007-08-28 09:59:52 UTC
Fixed by:

  http://gcc.gnu.org/ml/gcc-patches/2007-08/msg01906.html
Comment 4 Volker Reichelt 2007-08-29 06:41:42 UTC
Fixed, indeed.