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

            Bug ID: 60699
           Summary: empty braced-init-list of non-static data member T[N]
                    in class template results in ICE, if T is a class
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: filip.roseen at gmail dot com

Created attachment 32477
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32477&action=edit
testcase.cpp

struct A { };

template<class>
struct B {
    A a[1] = { };
};

int main () { B<void> b; }

---------------------------------------------------

testcase.cpp: In constructor ?constexpr B<void>::B()?:
testcase.cpp:4:8: internal compiler error: Segmentation fault
 struct B {
        ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions

Reply via email to