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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Still ICEs with gcc version 10.0.0 20190608 (experimental) (GCC)

$ xg++ -c 65707.C
65707.C:16:17: internal compiler error: in unify, at cp/pt.c:22784
   16 | template struct f<int>;
      |                 ^~~~~~
0xaed4cb unify
        /home/mpolacek/src/gcc/gcc/cp/pt.c:22784
0xaeb981 unify
        /home/mpolacek/src/gcc/gcc/cp/pt.c:22548
0xaec322 unify
        /home/mpolacek/src/gcc/gcc/cp/pt.c:22626
0xaeb981 unify
        /home/mpolacek/src/gcc/gcc/cp/pt.c:22548
0xaef9a8 get_partial_spec_bindings
        /home/mpolacek/src/gcc/gcc/cp/pt.c:23361
0xaf097b most_specialized_partial_spec
        /home/mpolacek/src/gcc/gcc/cp/pt.c:23637
0xab0f0f instantiate_class_template_1
        /home/mpolacek/src/gcc/gcc/cp/pt.c:10998
0xab429e instantiate_class_template(tree_node*)
        /home/mpolacek/src/gcc/gcc/cp/pt.c:11534
0xb8037a complete_type(tree_node*)
        /home/mpolacek/src/gcc/gcc/cp/typeck.c:139
0xaf1b35 do_type_instantiation(tree_node*, tree_node*, int)
        /home/mpolacek/src/gcc/gcc/cp/pt.c:23904
0xa3a90f cp_parser_explicit_instantiation
        /home/mpolacek/src/gcc/gcc/cp/parser.c:17187
0xa338a2 cp_parser_declaration
        /home/mpolacek/src/gcc/gcc/cp/parser.c:13174
0xa33b99 cp_parser_toplevel_declaration
        /home/mpolacek/src/gcc/gcc/cp/parser.c:13251
0xa20f8f cp_parser_translation_unit
        /home/mpolacek/src/gcc/gcc/cp/parser.c:4690
0xa77e7b c_parse_file()
        /home/mpolacek/src/gcc/gcc/cp/parser.c:41176
0xc341e2 c_common_parse_file()
        /home/mpolacek/src/gcc/gcc/c-family/c-opts.c:1156
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to