https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80356
Bug ID: 80356 Summary: [7 Regression] ICE in convert_nontype_argument, at cp/pt.c:6827 Product: gcc Version: 7.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org Target Milestone: --- Created attachment 41151 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41151&action=edit preprocessed source the reduced test case from PR79294 doesn't ICE anymore, but the unreduced test case still does. Here's a new reduction. Seen with trunk 20170407. $ cat python.ii template <int (&)(int, int)> struct a; template <int (&b)(int, int)> a < b $ g++ -c -std=c++11 python.ii python.ii:2:35: internal compiler error: in convert_nontype_argument, at cp/pt.c:6827 template <int (&b)(int, int)> a < b ^ 0x5f167b convert_nontype_argument ../../src/gcc/cp/pt.c:6826 0x5f167b convert_template_argument ../../src/gcc/cp/pt.c:7667 0x5f215c coerce_template_parms ../../src/gcc/cp/pt.c:8127 0x5f4bb9 lookup_template_class_1 ../../src/gcc/cp/pt.c:8663 0x5f4bb9 lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*, int, int) ../../src/gcc/cp/pt.c:9008 0x68edbd finish_template_type(tree_node*, tree_node*, int) ../../src/gcc/cp/semantics.c:3151 0x63e5f4 cp_parser_template_id ../../src/gcc/cp/parser.c:15495 0x63e74f cp_parser_class_name ../../src/gcc/cp/parser.c:21953 0x648d27 cp_parser_qualifying_entity ../../src/gcc/cp/parser.c:6286 0x648d27 cp_parser_nested_name_specifier_opt ../../src/gcc/cp/parser.c:5972 0x635660 cp_parser_constructor_declarator_p ../../src/gcc/cp/parser.c:25945 0x635660 cp_parser_decl_specifier_seq ../../src/gcc/cp/parser.c:13319 0x635d05 cp_parser_single_declaration ../../src/gcc/cp/parser.c:26625 0x651a9c cp_parser_template_declaration_after_parameters ../../src/gcc/cp/parser.c:26319 0x6517fb cp_parser_explicit_template_declaration ../../src/gcc/cp/parser.c:26554 0x6517fb cp_parser_template_declaration_after_export ../../src/gcc/cp/parser.c:26573 0x636389 cp_parser_declaration ../../src/gcc/cp/parser.c:12449 0x65be8b cp_parser_declaration_seq_opt ../../src/gcc/cp/parser.c:12376 0x65c172 cp_parser_translation_unit ../../src/gcc/cp/parser.c:4366 0x65c172 c_parse_file() ../../src/gcc/cp/parser.c:38427 Please submit a full bug report, with preprocessed source if appropriate.