From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2D97F3858D33; Fri, 31 Mar 2023 10:47:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2D97F3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680259623; bh=qat433kuK8QX7mubEwVN7mZNAMgm8NM/f8YyivqMI8Q=; h=From:To:Subject:Date:From; b=F2EjrU4Dpi+Y7IcVvHwjSZL03DKyGyWscDMjOfeIZ9RoGCyaVQ2VetFfy1MLYQVQD DMMPbfUaUDCQwy9kT3LdYKVNEffjaaq8nxJiT+uFS7jyV+BfL3KjCmNPYa53U9ozlp XISVf3CdCje7L8B9+fjIm8XOgplHNZAP4BBnacMk= From: "kgledits at cisco dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109357] New: GCC 13.0.1: internal compiler error in cp/constexpr.cc:1685 Date: Fri, 31 Mar 2023 10:47: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: kgledits at cisco 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 attachments.created 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=3D109357 Bug ID: 109357 Summary: GCC 13.0.1: internal compiler error in cp/constexpr.cc:1685 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: kgledits at cisco dot com Target Milestone: --- Created attachment 54797 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54797&action=3Dedit C++ file triggering internal compiler error See also https://godbolt.org/z/obn7vvjje . Using the attached CPP file: =3D=3D=3D=3D $ g++ --version g++ (GCC) 13.0.1 20230318 (Red Hat 13.0.1-0) Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ g++ -std=3Dc++20 -O2 -o - input-reduced.cpp=20 input-reduced.cpp: In destructor =E2=80=98s2::~s2()=E2=80=99: input-reduced.cpp:15:19: warning: ISO C++ forbids converting a string const= ant to =E2=80=98char*=E2=80=99 [-Wwrite-strings] 15 | s2::~s2() { s1 =3D {"", ""}; } | ^~ input-reduced.cpp:15:23: warning: ISO C++ forbids converting a string const= ant to =E2=80=98char*=E2=80=99 [-Wwrite-strings] 15 | s2::~s2() { s1 =3D {"", ""}; } | ^~ input-reduced.cpp: In destructor =E2=80=98s2::~s2()=E2=80=99: input-reduced.cpp:15:28: internal compiler error: in adjust_temp_type, at cp/constexpr.cc:1685 15 | s2::~s2() { s1 =3D {"", ""}; } | ^ Please submit a full bug report, with preprocessed source. See for instructions. Preprocessed source stored into /tmp/ccN3KzRp.out file, please attach this = to your bugreport. =3D=3D=3D=3D=