[Bug c++/58639] ICE on self-referential struct member

vlukas at gmx dot de gcc-bugzilla@gcc.gnu.org
Sun Oct 6 16:17:00 GMT 2013


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

vlukas at gmx dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vlukas at gmx dot de

--- Comment #1 from vlukas at gmx dot de ---
Reduced testcase:
---------------------------------------------------
struct node {
  node &parent;
};

struct vector {
  node n;
};

vector v({});
--------------------------------------------------


The original testcase and the reduced one above produce identical backtraces
with gcc version 4.9.0 20130429 (experimental) (GCC):
----------------------------------------------------
c++: internal compiler error: Segmentation fault (program cc1plus)
0x40ca42 execute
        ../../gcc_svn/gcc/gcc.c:2823
0x40ccc9 do_spec_1
        ../../gcc_svn/gcc/gcc.c:4615
0x40f9dc process_brace_body
        ../../gcc_svn/gcc/gcc.c:5872
0x40f9dc handle_braces
        ../../gcc_svn/gcc/gcc.c:5786
0x40da9a do_spec_1
        ../../gcc_svn/gcc/gcc.c:5269
0x40f9dc process_brace_body
        ../../gcc_svn/gcc/gcc.c:5872
0x40f9dc handle_braces
        ../../gcc_svn/gcc/gcc.c:5786
0x40da9a do_spec_1
        ../../gcc_svn/gcc/gcc.c:5269
0x40d06b do_spec_1
        ../../gcc_svn/gcc/gcc.c:5374
0x40f9dc process_brace_body
        ../../gcc_svn/gcc/gcc.c:5872
0x40f9dc handle_braces
        ../../gcc_svn/gcc/gcc.c:5786
0x40da9a do_spec_1
        ../../gcc_svn/gcc/gcc.c:5269
0x40f9dc process_brace_body
        ../../gcc_svn/gcc/gcc.c:5872
0x40f9dc handle_braces
        ../../gcc_svn/gcc/gcc.c:5786
0x40da9a do_spec_1
        ../../gcc_svn/gcc/gcc.c:5269
0x40f9dc process_brace_body
        ../../gcc_svn/gcc/gcc.c:5872
0x40f9dc handle_braces
        ../../gcc_svn/gcc/gcc.c:5786
0x40da9a do_spec_1
        ../../gcc_svn/gcc/gcc.c:5269
0x40f9dc process_brace_body
        ../../gcc_svn/gcc/gcc.c:5872
0x40f9dc handle_braces
        ../../gcc_svn/gcc/gcc.c:5786
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
----------------------------------------------------



More information about the Gcc-bugs mailing list