More fallout from the variadic templates on mainline:
===========================================================
template <typename... T> struct A
{
A(T* p) { (A<T...>*)(p); }
};
A<int> a(0);
===========================================================
bug.cc:3: error: parameter packs not expanded with `...':
bug.cc:3: note: 'T'
bug.cc:3: error: parameter packs not expanded with `...':
bug.cc:3: note: 'T'
bug.cc: In constructor 'A<T>::A(T*) [with T = int]':
bug.cc:6: instantiated from here
bug.cc:3: internal compiler error: tree check: expected record_type or
union_type or qual_union_type, have template_type_parm in lookup_base, at
cp/search.c:213
Please submit a full bug report, [etc.]
Similar to PR31436 as this is also invalid use of a parameter pack
in a function argument and triggers an ICE in a lookup_* function.
--
Summary: [4.3 regression] ICE with invalid use of parameter pack
in member function arg
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, 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=31437