[Bug c++/31445] New: [4.3 regression] type_argument_pack not supported by dump_type
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Apr 2 20:24:00 GMT 2007
More fallout from the variadic templates on mainline:
===========================================================
template <typename... T> struct A
{
void foo(T...);
A(T... t) { foo(t); }
};
A<int> a(0);
===========================================================
This is only a diagnostic problem in the second to last line:
bug.cc: In constructor 'A<T>::A(T ...)':
bug.cc:4: error: parameter packs not expanded with `...':
bug.cc:4: note: 't'
bug.cc: In constructor 'A<T>::A(T ...) [with T = int]':
bug.cc:7: instantiated from here
bug.cc:4: error: no matching function for call to
'A<int>::foo(#'type_argument_pack' not supported by dump_type#<type error>)'
bug.cc:3: note: candidates are: void A<T>::foo(T ...) [with T = int]
--
Summary: [4.3 regression] type_argument_pack not supported by
dump_type
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=31445
More information about the Gcc-bugs
mailing list