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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-05-02
                 CC|                            |trippels at gcc dot gnu.org
            Summary|Current gcc 6 snapshot      |segmentation fault when
                   |fails with segmentation     |compiling C++14 code
                   |fault when compiling C++14  |
                   |code                        |
     Ever confirmed|0                           |1
      Known to fail|                            |5.1.0, 6.0
           Severity|blocker                     |normal

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
markus@x4 tmp % cat test.ii
class foo {
  constexpr foo() noexcept { __PRETTY_FUNCTION__; };
};

markus@x4 tmp % g++ -c -std=c++14 test.ii
test.ii: In constructor ‘constexpr foo::foo()’:
test.ii:2:51: internal compiler error: Segmentation fault
   constexpr foo() noexcept { __PRETTY_FUNCTION__; };
                                                   ^
0xc834af crash_signal
        ../../gcc/gcc/toplev.c:380
0x7c6cf4 tsi_stmt
        ../../gcc/gcc/tree-iterator.h:92
0x7c6cf4 build_constexpr_constructor_member_initializers
        ../../gcc/gcc/cp/constexpr.c:550
0x7c6cf4 massage_constexpr_body
        ../../gcc/gcc/cp/constexpr.c:680
0x7d0a7b register_constexpr_fundef(tree_node*, tree_node*)
        ../../gcc/gcc/cp/constexpr.c:783
0x5fa005 maybe_save_function_definition
        ../../gcc/gcc/cp/decl.c:14110
0x5fa005 finish_function(int)
        ../../gcc/gcc/cp/decl.c:14234
0x6e91b9 cp_parser_function_definition_after_declarator
        ../../gcc/gcc/cp/parser.c:23473
0x6ec82c cp_parser_late_parsing_for_member
        ../../gcc/gcc/cp/parser.c:24150
0x6c7901 cp_parser_class_specifier_1
        ../../gcc/gcc/cp/parser.c:20041
0x6c7901 cp_parser_class_specifier
        ../../gcc/gcc/cp/parser.c:20067
0x6c7901 cp_parser_type_specifier
        ../../gcc/gcc/cp/parser.c:14707
0x6dac5f cp_parser_decl_specifier_seq
        ../../gcc/gcc/cp/parser.c:11938
0x6ebf71 cp_parser_simple_declaration
        ../../gcc/gcc/cp/parser.c:11515
0x6e5b73 cp_parser_block_declaration
        ../../gcc/gcc/cp/parser.c:11462
0x6efac9 cp_parser_declaration
        ../../gcc/gcc/cp/parser.c:11359
0x6ee15a cp_parser_declaration_seq_opt
        ../../gcc/gcc/cp/parser.c:11245
0x6ee46f cp_parser_translation_unit
        ../../gcc/gcc/cp/parser.c:4107
0x6ee46f c_parse_file()
        ../../gcc/gcc/cp/parser.c:33173
0x826152 c_common_parse_file()
        ../../gcc/gcc/c-family/c-opts.c:1057
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.

Reply via email to