http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48115
Summary: [4.6/4.7 Regression] [C++0x] internal compiler error:
in type_has_nontrivial_copy_init, at cp/tree.c:2482
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: c++
AssignedTo: [email protected]
ReportedBy: [email protected]
template<typename> struct templ { };
typedef void (*F2)(...);
template<typename F, typename T>
struct S
{
template<typename A>
decltype( F()(T()) )
f(A);
};
int main()
{
S<F2, templ<int>>().f(0);
}
compiles ok with 4.5, ICE with 4.6.o 20110305