Bug 59118 - internal compiler error: Segmentation fault - with "using" keyword and template parameter(s) (C++11)
Summary: internal compiler error: Segmentation fault - with "using" keyword and templa...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.8.2
: P3 normal
Target Milestone: 4.9.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-invalid-code
Depends on:
Blocks:
 
Reported: 2013-11-13 16:50 UTC by reagentoo
Modified: 2014-04-17 13:53 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description reagentoo 2013-11-13 16:50:30 UTC
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();
}
Comment 1 Paolo Carlini 2014-04-17 13:53:23 UTC
This is fixed for 4.9.0.