[Bug c++/53492] New: [g++ (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1 ] internal compiler error: in retrieve_specialization, at cp/pt.c:985

endight at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri May 25 23:14:00 GMT 2012


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

             Bug #: 53492
           Summary: [g++ (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1 ] internal
                    compiler error: in retrieve_specialization, at
                    cp/pt.c:985
    Classification: Unclassified
           Product: gcc
           Version: new-ra
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: endight@gmail.com


Created attachment 27501
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27501
Preprocessed source stored into /tmp/ccTNE1Sa.out file, please attach this to
your bugreport.

template<typename T>
struct foo{
    struct bat;
        template<typename X>
        class quux;
};

template<typename T>
class foo<T>::bat
{};

template<>
template<typename T>
class foo<T>::quux{
    quux(typename foo<T>::bat*){}
};


template<typename T>
struct buz: public foo<T>::template bar<T>{};

int main()
{
    foo<int>::quux<int> lol; // bug
}
// gives this
../main.cpp: In instantiation of 'foo<int>::quux<int>':
../main.cpp:24:22:   instantiated from here
../main.cpp:15:2: internal compiler error: in retrieve_specialization, at
cp/pt.c:985



More information about the Gcc-bugs mailing list