From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 25269386F420; Sat, 9 Jan 2021 04:42:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 25269386F420 From: "arthur.j.odwyer at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/97034] [11 Regression] ICE on C++20 code: gcc_assert failure in return type deduction (gcc/cp/pt.c:26984 in type_dependent_expression_p(tree_node*)) Date: Sat, 09 Jan 2021 04:42:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: arthur.j.odwyer at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jan 2021 04:42:10 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97034 Arthur O'Dwyer changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |arthur.j.odwyer at gmail d= ot com --- Comment #5 from Arthur O'Dwyer --- Is mine the same bug? Mine is also a regression (trunk crashes where GCC 10= .2 had succeeded). // https://godbolt.org/z/Ysh6as struct C { void f(auto) noexcept; }; void C::f(auto) noexcept(C::x) {} Compile with -std=3Dc++20: :3:29: error: 'x' is not a member of 'C' 3 | void C::f(auto) noexcept(C::x) {} | ^ :3:6: error: declaration of 'void C::f(auto:2)' has a different exception specifier 3 | void C::f(auto) noexcept(C::x) {} | ^ :2:17: note: from previous declaration 'void C::f(auto:1) noexcept' 2 | struct C { void f(auto) noexcept; }; | ^ :3:30: internal compiler error: in type_dependent_expression_p, at cp/pt.c:27166 3 | void C::f(auto) noexcept(C::x) {} | ^ 0x1cc31d9 internal_error(char const*, ...) ???:0 0x6b25f7 fancy_abort(char const*, int, char const*) ???:0 0x8ee70a type_dependent_expression_p(tree_node*) ???:0 0x137d4f3 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set >*)) ???:0 0x1381b55 walk_tree_without_duplicates_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set >*)) ???:0 0x8ea937 instantiation_dependent_uneval_expression_p(tree_node*) ???:0 0x8f2198 instantiation_dependent_expression_p(tree_node*) ???:0 0x8f2216 uses_template_parms(tree_node*) ???:0 0x78ffe8 duplicate_decls(tree_node*, tree_node*, bool, bool) ???:0 0x79a2b6 grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*, decl_context, int, tree_node**) ???:0 0x79dda6 start_function(cp_decl_specifier_seq*, cp_declarator const*, tree_node*) ???:0 0x8d803d c_parse_file() ???:0 0xa54072 c_common_parse_file() ???:0=