public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49507] New: ICE because of defaulted template destructor
@ 2011-06-22 21:03 sefi@s-e-f-i.de
  2011-06-23  9:51 ` [Bug c++/49507] [4.6/4.7 Regression] " jakub at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: sefi@s-e-f-i.de @ 2011-06-22 21:03 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-06-24 19:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-22 21:03 [Bug c++/49507] New: ICE because of defaulted template destructor sefi@s-e-f-i.de
2011-06-23  9:51 ` [Bug c++/49507] [4.6/4.7 Regression] " jakub at gcc dot gnu.org
2011-06-23 14:29 ` jason at gcc dot gnu.org
2011-06-23 15:10 ` jason at gcc dot gnu.org
2011-06-23 16:55 ` jason at gcc dot gnu.org
2011-06-23 16:56 ` jason at gcc dot gnu.org
2011-06-24 10:26 ` sefi@s-e-f-i.de
2011-06-24 19:56 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).