https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90748
Bug ID: 90748 Summary: [9/10 Regression] ICE in tsubst_copy, at cp/pt.c:15564 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Changed between 20181111 and 20181118 : (gcc-6 silently accepts it) $ cat z1.cc template <class ...> class A { void e (); bool f (int() noexcept(e)) { return 0; } }; A<> b; $ g++-10-20190602 -c z1.cc z1.cc: In instantiation of 'class A<>': z1.cc:6:5: required from here z1.cc:4:26: internal compiler error: in tsubst_copy, at cp/pt.c:15564 4 | bool f (int() noexcept(e)) { return 0; } | ^ 0x6ed7d2 tsubst_copy ../../gcc/cp/pt.c:15564 0x6dfdde tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc/cp/pt.c:19474 0x6e00ea tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc/cp/pt.c:18369 0x6e0531 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc/cp/pt.c:18347 0x6dfe42 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc/cp/pt.c:19253 0x6f011c tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc/cp/pt.c:18247 0x6f011c tsubst_exception_specification ../../gcc/cp/pt.c:14298 0x6e3d55 tsubst(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.c:14952 0x6e4251 tsubst(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.c:14463 0x6e3129 tsubst_arg_types ../../gcc/cp/pt.c:14061 0x6e31d7 tsubst_arg_types ../../gcc/vec.h:989 0x6e31d7 tsubst_arg_types ../../gcc/cp/pt.c:14030 0x6e3565 tsubst_arg_types ../../gcc/cp/pt.c:14027 0x6e3565 tsubst_function_type ../../gcc/cp/pt.c:14202 0x6e3d29 tsubst(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.c:14947 0x6f32c7 tsubst_function_decl ../../gcc/cp/pt.c:13052 0x6ed919 tsubst_decl ../../gcc/cp/pt.c:13489 0x6e4107 tsubst(tree_node*, tree_node*, int, tree_node*) ../../gcc/cp/pt.c:14390 0x6fc4e8 instantiate_class_template_1 ../../gcc/cp/pt.c:11229 0x6fc4e8 instantiate_class_template(tree_node*) ../../gcc/cp/pt.c:11534