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

            Bug ID: 71248
           Summary: crash on in-class initializer of array of pointer to
                    member
           Product: gcc
           Version: 4.8.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: programmerjake at gmail dot com
  Target Milestone: ---

g++ --version
g++ (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

g++ -std=c++11 code.cpp
code.cpp:6:5: internal compiler error: Segmentation fault
     };
     ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccAlvGe3.out file, please attach this to
your bugreport.


code.cpp:
struct S
{
    int a;
    static int S::*typeMembers[] = {
        &S::a,
    };
};

Reply via email to