https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63508

            Bug ID: 63508
           Summary: ICE when using bracketed initializer on pointer to
                    member function of a templated class
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mlang at delysid dot org
            Target: x86_64-linux-gnu

With -std=c++11, using bracketed initialisation on a pointer to member function
inside a templated class crashes GCC with an ICE segfault:

fx:~/src/wikiwordfreq% LC_MESSAGES=C g++ -std=c++11 bug.cpp
bug.cpp: In instantiation of ‘c<T>::c() [with T = int]’:
bug.cpp:14:23:   required from here
bug.cpp:7:22: internal compiler error: Segmentation fault
     auto x = m{&c::mf};
                      ^

Reply via email to