https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98538
Bug ID: 98538 Summary: [11 Regression] ICE in cp_build_qualified_type_real, at cp/tree.c:1335 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: doko at debian dot org Target Milestone: --- seen with trunk 20210102, building krita: $ cat KoOptimizedCompositeOpFactory.ii template <typename U, long> using CArray = U[]; template <typename U, long Extent, const CArray<U, Extent> $ g++ -std=gnu++11 -Wall -c -O0 KoOptimizedCompositeOpFactory.ii KoOptimizedCompositeOpFactory.ii:2:42: internal compiler error: in cp_build_qualified_type_real, at cp/tree.c:1335 2 | template <typename U, long Extent, const CArray<U, Extent> | ^~~~~~~~~~~~~~~~~ 0x6133b4 cp_build_qualified_type_real(tree_node*, int, int) ../../src/gcc/cp/tree.c:1335 0x1302fc2 cp_build_qualified_type_real(tree_node*, int, int) ../../src/gcc/cp/tree.c:1307 0x1302fc2 grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*, decl_context, int, tree_node**) ../../src/gcc/cp/decl.c:11806 0x13b3bb4 cp_parser_template_parameter ../../src/gcc/cp/parser.c:17008 0x13b3bb4 cp_parser_template_parameter_list ../../src/gcc/cp/parser.c:16569 0x13b336c cp_parser_explicit_template_declaration ../../src/gcc/cp/parser.c:30247 0x12ec6ec cp_parser_declaration ../../src/gcc/cp/parser.c:14006 0x17e4663 cp_parser_toplevel_declaration ../../src/gcc/cp/parser.c:14104 0x17e4663 cp_parser_translation_unit ../../src/gcc/cp/parser.c:4936 0x17e4663 c_parse_file() ../../src/gcc/cp/parser.c:45118 0x17c602a c_common_parse_file() ../../src/gcc/c-family/c-opts.c:1211 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. building is configured with --enable-checking=yes,extra,rtl