https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79294
Bug ID: 79294 Summary: [7 Regression] ICE in convert_nontype_argument, at cp/pt.c:6812 Product: gcc Version: 7.0 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 40627 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40627&action=edit preprocessed source seen with r244943 20170129 $ cat python.ii template <int()> struct a; template <int(b)> a < b $ g++ -c -std=c++11 python.ii python.ii:2:23: internal compiler error: in convert_nontype_argument, at cp/pt.c:6812 template <int(b)> a < b ^ 0x62d24a convert_nontype_argument ../../src/gcc/cp/pt.c:6811 0x62d24a convert_template_argument ../../src/gcc/cp/pt.c:7648 0x62de3c coerce_template_parms ../../src/gcc/cp/pt.c:8108 0x630139 lookup_template_class_1 ../../src/gcc/cp/pt.c:8632 0x630139 lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*, int, int) ../../src/gcc/cp/pt.c:8977 0x6c8bfd finish_template_type(tree_node*, tree_node*, int) ../../src/gcc/cp/semantics.c:3145 0x67923e cp_parser_template_id ../../src/gcc/cp/parser.c:15488 0x6793df cp_parser_class_name ../../src/gcc/cp/parser.c:21922 0x683987 cp_parser_qualifying_entity ../../src/gcc/cp/parser.c:6287 0x683987 cp_parser_nested_name_specifier_opt ../../src/gcc/cp/parser.c:5973 0x6705a2 cp_parser_constructor_declarator_p ../../src/gcc/cp/parser.c:25918 0x6705a2 cp_parser_decl_specifier_seq ../../src/gcc/cp/parser.c:13312 0x670975 cp_parser_single_declaration ../../src/gcc/cp/parser.c:26574 0x68c64c cp_parser_template_declaration_after_parameters ../../src/gcc/cp/parser.c:26268 0x68c3ab cp_parser_explicit_template_declaration ../../src/gcc/cp/parser.c:26503 0x68c3ab cp_parser_template_declaration_after_export ../../src/gcc/cp/parser.c:26522 0x670ff1 cp_parser_declaration ../../src/gcc/cp/parser.c:12442 0x69692b cp_parser_declaration_seq_opt ../../src/gcc/cp/parser.c:12369 0x696c12 cp_parser_translation_unit ../../src/gcc/cp/parser.c:4369 0x696c12 c_parse_file() ../../src/gcc/cp/parser.c:38357 Please submit a full bug report, with preprocessed source if appropriate.