[Bug c++/49507] New: ICE because of defaulted template destructor
sefi@s-e-f-i.de
gcc-bugzilla@gcc.gnu.org
Wed Jun 22 21:03:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49507
Summary: ICE because of defaulted template destructor
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: sefi@s-e-f-i.de
The following code makes rc1 of gcc-4.6.1 segfault:
template<typename T>
struct ConcretePoolKey
{
virtual ~ConcretePoolKey();
};
template<typename T>
ConcretePoolKey<T>::~ConcretePoolKey() = default;
int main()
{
ConcretePoolKey<int> foo;
}
/usr/bin/g++ -std=c++0x test.cpp
test.cpp: In destructor 'ConcretePoolKey<T>::~ConcretePoolKey() [with T =
int]':
test.cpp:13:1: instantiated from here
test.cpp:2:8: internal compiler error: Segmentation fault
More information about the Gcc-bugs
mailing list