https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105803
Bug ID: 105803 Summary: [13 regression] ICE at gcc/cp/pt.cc:27737 after r13-860-gff91735a5b861d Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- g:ff91735a5b861dd6eaf2c1e511f26a9255898e7d, r13-860-gff91735a5b861d This is occurring in one of the spec2017 test cases, 510.parest_r. /home/seurer/gcc/git/install/gcc-test/bin/g++ -c -o source/multigrid/mg_transfer_block.o -DSPEC -DNDEBUG -Iinclude -I. -DSPEC_AUTO_SUPPRESS_OPENMP -m64 -O3 -mcpu=power9 -ffast-math -funroll-loops -fpeel-loops -fvect-cost-model -mpopcntd -mrecip=rsqrt -DSPEC_LP64 -Wno-deprecated-declarations -std=c++14 -fpermissive source/multigrid/mg_transfer_block.cc source/multigrid/mg_transfer_block.cc: In member function 'void dealii::MGTransferBlockBase::build_matrices(const dealii::DoFHandler<dim, spacedim>&, const dealii::MGDoFHandler<dim, spacedim>&)': source/multigrid/mg_transfer_block.cc:119:20: internal compiler error: in type_dependent_expression_p, at cp/pt.cc:27737 118 | prolongation_sparsities | ~~~~~~~~~~~~~~~~~~~~~~~ 119 | .push_back (std_cxx1x::shared_ptr<BlockSparsityPattern> (new BlockSparsityPattern)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x1063cb33 type_dependent_expression_p(tree_node*) /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:27737 0x1063d6f3 value_dependent_expression_p(tree_node*) /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:27465 0x1063df77 value_dependent_expression_p(tree_node*) /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:27707 0x106447cf any_value_dependent_elements_p(tree_node const*) /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:28184 0x103a7257 is_nondependent_constant_expression(tree_node*) /home/seurer/gcc/git/gcc-test/gcc/cp/constexpr.cc:9673 0x103a7913 fold_non_dependent_expr_template /home/seurer/gcc/git/gcc-test/gcc/cp/constexpr.cc:8172 0x10636ea3 build_non_dependent_expr(tree_node*) /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:28647 0x106379a3 make_args_non_dependent(vec<tree_node*, va_gc, vl_embed>*) /home/seurer/gcc/git/gcc-test/gcc/cp/pt.cc:28729 0x1033ea53 build_new_method_call(tree_node*, tree_node*, vec<tree_node*, va_gc, vl_embed>**, tree_node*, int, tree_node**, int) /home/seurer/gcc/git/gcc-test/gcc/cp/call.cc:10939 0x105d91e7 cp_parser_postfix_expression /home/seurer/gcc/git/gcc-test/gcc/cp/parser.cc:7856 0x105fddd3 cp_parser_unary_expression /home/seurer/gcc/git/gcc-test/gcc/cp/parser.cc:9037 0x105b0307 cp_parser_cast_expression /home/seurer/gcc/git/gcc-test/gcc/cp/parser.cc:9941 0x105b0e83 cp_parser_binary_expression /home/seurer/gcc/git/gcc-test/gcc/cp/parser.cc:10043 0x105b1aff cp_parser_assignment_expression /home/seurer/gcc/git/gcc-test/gcc/cp/parser.cc:10347 0x105b5d33 cp_parser_expression /home/seurer/gcc/git/gcc-test/gcc/cp/parser.cc:10517 0x105ba46b cp_parser_expression_statement /home/seurer/gcc/git/gcc-test/gcc/cp/parser.cc:12734 0x105d22ff cp_parser_statement /home/seurer/gcc/git/gcc-test/gcc/cp/parser.cc:12526 0x105d3803 cp_parser_statement_seq_opt /home/seurer/gcc/git/gcc-test/gcc/cp/parser.cc:12883 0x10613277 cp_parser_already_scoped_statement /home/seurer/gcc/git/gcc-test/gcc/cp/parser.cc:14513 0x1061378b cp_parser_iteration_statement /home/seurer/gcc/git/gcc-test/gcc/cp/parser.cc:14147 commit ff91735a5b861dd6eaf2c1e511f26a9255898e7d (HEAD) Author: Marek Polacek <pola...@redhat.com> Date: Fri May 13 20:09:53 2022 -0400 c++: Add !TYPE_P assert to type_dependent_expression_p [PR99080]