This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31445] New: [4.3 regression] type_argument_pack not supported by dump_type
- 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: 2 Apr 2007 20:24:40 -0000
- Subject: [Bug c++/31445] New: [4.3 regression] type_argument_pack not supported by dump_type
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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