[Bug c++/66315] New: internal compiler error (segfault) when assigning nested initializer list

t_glaessle at gmx dot de gcc-bugzilla@gcc.gnu.org
Wed May 27 20:20:00 GMT 2015


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

            Bug ID: 66315
           Summary: internal compiler error (segfault) when assigning
                    nested initializer list
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: t_glaessle at gmx dot de
  Target Milestone: ---

Created attachment 35638
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35638&action=edit
preprocessed source

Hey,

starting with g++ 5.1.0, I get the following error from the attached source
file:

    $ /usr/bin/g++ -std=c++11 sample.cpp -save-temps

    sample.cpp: In function ‘void parse()’:
    sample.cpp:11:28: internal compiler error: Segmentation fault
         List l = {{get<Item>()}};
                                ^
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <https://bugs.archlinux.org/> for instructions.
    Makefile:3: recipe for target 'all' failed

I'm running on up-to-day archlinux 64bit 

    $ uname -a

    Linux core-problem 4.0.4-2-ARCH #1 SMP PREEMPT Fri May 22 03:05:23 UTC 2015
x86_64 GNU/Linux

I'm not entirely sure this is valid c++ and removing the nested initializer
list solves the problem.

I hope this is the correct location to report the issue and I've included all
the necessary information. Sorry, if this is a duplicate, I did a quick search
but couldn't find anything.

Best regards,
Thomas


More information about the Gcc-bugs mailing list