[Bug c++/51230] New: [4.7 Regression] Broken diagnostic: 'template_parm_index' not supported by dump_type
reichelt at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Nov 19 21:48:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51230
Bug #: 51230
Summary: [4.7 Regression] Broken diagnostic:
'template_parm_index' not supported by dump_type
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: reichelt@gcc.gnu.org
Trunk produces a broken error message for the following invalid code snippet:
==========================================
template<int> struct A {};
template<int N> void foo(A<N>, A<N>);
void bar()
{
foo(A<0>(), A<1>());
}
==========================================
bug.cc: In function 'void bar()':
bug.cc:7:21: error: no matching function for call to 'foo(A<0>, A<1>)'
bug.cc:7:21: note: candidate is:
bug.cc:3:22: note: template<int N> void foo(A<N>, A<N>)
bug.cc:3:22: note: template argument deduction/substitution failed:
bug.cc:7:21: note: deduced conflicting types for parameter
'#'template_parm_index' not supported by dump_type#<type error>'
('#'integer_cst' not supported by dump_type#<type error>' and '#'integer_cst'
not supported by dump_type#<type error>')
More information about the Gcc-bugs
mailing list