[Bug c++/48802] New: ICE with inheritance and nothrow virtual destructors

marc.glisse at normalesup dot org gcc-bugzilla@gcc.gnu.org
Thu Apr 28 11:07:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48802

           Summary: ICE with inheritance and nothrow virtual destructors
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: marc.glisse@normalesup.org


namespace std {
    struct range_error  {
        virtual ~range_error() throw();
    };
    struct Uncertain_conversion_exception : std::range_error {
        ~Uncertain_conversion_exception() throw() {
        }
    };
}

$ c++ bug.cc -fsyntax-only        
bug.cc:7:3: internal compiler error: Segmentation fault

(I noticed it with C++0x, but it seems to apply to C++03 as well)



More information about the Gcc-bugs mailing list