[Bug c++/59118] New: internal compiler error: Segmentation fault - with "using" keyword and template parameter(s) (C++11)
reagentoo at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Nov 13 16:51:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59118
Bug ID: 59118
Summary: internal compiler error: Segmentation fault - with
"using" keyword and template parameter(s) (C++11)
Product: gcc
Version: 4.8.1
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: reagentoo at gmail dot com
Minimal code where the bug is reproducible (http://ideone.com/tTVorC):
#include <iostream>
template <typename T>
class Test {
public:
template <typename A>
using Wrapper = std::string;
template <template <class> class C>
void func(const C<T>& t) {
t;
return;
}
void test()
{
std::string sss;
Wrapper<char> www;
func((const Wrapper<char>&)sss);
}
};
int main(int argc, char *argv[])
{
Test<char> ttt;
ttt.test();
}
More information about the Gcc-bugs
mailing list