This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48115] New: [4.6/4.7 Regression] [C++0x] internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.c:2482
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 14 Mar 2011 16:04:14 +0000
- Subject: [Bug c++/48115] New: [4.6/4.7 Regression] [C++0x] internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.c:2482
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: redi@gcc.gnu.org
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