From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5C75C3858C2D; Tue, 11 Oct 2022 07:23:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C75C3858C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665472982; bh=gg+3P/pHZY/YAEQnT8E9BSsYo47dswdRBLarV0VyFxw=; h=From:To:Subject:Date:From; b=L2sJ1XAWNwu1Lzg53flwQpMRjAsXIzdDn7V/6QaF02j1+7ek0wXLnDe3/ZSiX4F0t Wb4k5iZxfT84kKQnRezfK/gQJvrzBjMgO75eIqSG88cvBl/baRRlpxrsHn+fFs0PRR rmSFLwN6wcGmTrlndAEQz6Wv5s4VHvc3AYFMJ9Do= From: "jlame646 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107211] New: GCC compiles invalid use of non static member function in noexcept operator Date: Tue, 11 Oct 2022 07:23:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jlame646 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107211 Bug ID: 107211 Summary: GCC compiles invalid use of non static member function in noexcept operator Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jlame646 at gmail dot com Target Milestone: --- The following invalid program is accepted by gcc trunk. Demo: https://godbolt.org/z/fez5GqKdT ``` struct C { void func() noexcept { } void f() noexcept(noexcept(C::func)) //gcc compiles this { } }; ``` This has been discussed here: https://stackoverflow.com/questions/74024368/gcc-compiles-use-of-noexcept-o= perator-but-clang-and-msvc-rejects-it=