From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 55C813858402; Tue, 5 Oct 2021 09:55:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 55C813858402 From: "nickhuang99 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/92010] [8/9 Regression] gcc internal error since 8x on warning write-strings Date: Tue, 05 Oct 2021 09:55:13 +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: 9.2.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: nickhuang99 at hotmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: ppalka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.5 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: Tue, 05 Oct 2021 09:55:14 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D92010 qingzhe huang changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nickhuang99 at hotmail dot= com --- Comment #11 from qingzhe huang --- The testcase g++.dg/cpp2a/lambda-uneval11.C still suffers a segment fault if run by compiler cc1plus with latest code. And gdb shows that global var "current_function_decl" is set to 0 when crashed. Should we reopen this bug? ./install/libexec/gcc/x86_64-unknown-linux-gnu/12.0.0/cc1plus -std=3Dc++20 gcc-clone/gcc/testsuite/g++.dg/cpp2a/lambda-uneval11.C void spam(decltype () (*)[sizeof (T)]) void foo() static constexpr void::_FUN() constexpr::operator void (*)()() const static constexpr void::_FUN() constexpr::operator void (*)()() const static constexpr void::_FUN() constexpr::operator void (*)()() const static constexpr void::_FUN() constexpr::operator void (*)()() const constexpr::operator void (*)()() const static constexpr void::_FUN() constexpr::operator void (*)()() const gcc-clone/gcc/testsuite/g++.dg/cpp2a/lambda-uneval11.C: In instantiation of =E2=80=98constexpr::operator void (*)()() const=E2=80=99: gcc-clone/gcc/testsuite/g++.dg/cpp2a/lambda-uneval11.C:9:12: required from here gcc-clone/gcc/testsuite/g++.dg/cpp2a/lambda-uneval11.C:4:25: internal compi= ler error: Segmentation fault 4 | template void spam(decltype([]{}) (*s)[sizeof(T)] =3D nul= lptr) | ^~~~ Please submit a full bug report, with preprocessed source if appropriate. See for instructions.=