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

            Bug ID: 63820
           Summary: [5.0 regression] c++ ICE since libcpp change r217202
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jiwang at gcc dot gnu.org

./cc1plus -O2 cse.ii 
 int vprintf(const char*, __gnuc_va_list) {GC 13083k -> 
In file included from /usr/include/stdio.h:934:0,
                 from ../../gcc/gcc/system.h:46,
                 from ../../gcc/gcc/cse.c:21:
/usr/include/aarch64-linux-gnu/bits/stdio.h: At global scope:
/usr/include/aarch64-linux-gnu/bits/stdio.h:39:1: internal compiler error:
Segmentation fault
0xe7cf85 crash_signal
    ../../gcc/gcc/toplev.c:358
0x95da9e lookup_page_table_entry
    ../../gcc/gcc/ggc-page.c:650
0x95ebbc ggc_set_mark(void const*)
    ../../gcc/gcc/ggc-page.c:1531
0x85de40 gt_ggc_mx_lang_tree_node(void*)
    ./gt-cp-tree.h:236
0xc230d0 gt_ggc_mx_cpp_macro(void*)
    /work/COMMUNITY-SUBMIT/build-gcc-aarch64/gcc/gtype-desc.c:2993
0x860810 gt_ggc_mx_lang_tree_node(void*)
    ./gt-cp-tree.h:740
0xe78282 mark_ident
    ../../gcc/gcc/stringpool.c:167
0x1546050 ht_forall(ht*, int (*)(cpp_reader*, ht_identifier*, void const*),
void const*)
    ../../gcc/libcpp/symtab.c:233
0xe782d4 ggc_mark_stringpool()
    ../../gcc/gcc/stringpool.c:187
0xb9bcab ggc_mark_roots()
    ../../gcc/gcc/ggc-common.c:158
0x95fd31 ggc_collect()
    ../../gcc/gcc/ggc-page.c:2190
0xa0ac4b cgraph_node::finalize_function(tree_node*, bool)
    ../../gcc/gcc/cgraphunit.c:470
0x8387a4 expand_or_defer_fn(tree_node*)
    ../../gcc/gcc/cp/semantics.c:4070
0x7afcdc cp_parser_function_definition_after_declarator
    ../../gcc/gcc/cp/parser.c:23381
0x7afaa7 cp_parser_function_definition_from_specifiers_and_declarator
    ../../gcc/gcc/cp/parser.c:23285
0x7a3d10 cp_parser_init_declarator
    ../../gcc/gcc/cp/parser.c:16969
0x79b20f cp_parser_simple_declaration
    ../../gcc/gcc/cp/parser.c:11541
0x79b001 cp_parser_block_declaration
    ../../gcc/gcc/cp/parser.c:11422
0x79ad7c cp_parser_declaration
    ../../gcc/gcc/cp/parser.c:11319
0x79a908 cp_parser_declaration_seq_opt
    ../../gcc/gcc/cp/parser.c:11205
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