This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[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
- From: "endight at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 25 May 2012 23:11:51 +0000
- Subject: [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
- Auto-submitted: auto-generated
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