public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/109357] New: GCC 13.0.1: internal compiler error in cp/constexpr.cc:1685
@ 2023-03-31 10:47 kgledits at cisco dot com
  2023-03-31 17:00 ` [Bug c++/109357] [12/13 Regression] " xry111 at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: kgledits at cisco dot com @ 2023-03-31 10:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109357

            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=54797&action=edit
C++ file triggering internal compiler error

See also https://godbolt.org/z/obn7vvjje . Using the attached CPP file:
====
$ 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=c++20 -O2  -o - input-reduced.cpp 
input-reduced.cpp: In destructor ‘s2::~s2()’:
input-reduced.cpp:15:19: warning: ISO C++ forbids converting a string constant
to ‘char*’ [-Wwrite-strings]
   15 | s2::~s2() { s1 = {"", ""}; }
      |                   ^~
input-reduced.cpp:15:23: warning: ISO C++ forbids converting a string constant
to ‘char*’ [-Wwrite-strings]
   15 | s2::~s2() { s1 = {"", ""}; }
      |                       ^~
input-reduced.cpp: In destructor ‘s2::~s2()’:
input-reduced.cpp:15:28: internal compiler error: in adjust_temp_type, at
cp/constexpr.cc:1685
   15 | s2::~s2() { s1 = {"", ""}; }
      |                            ^
Please submit a full bug report, with preprocessed source.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccN3KzRp.out file, please attach this to
your bugreport.
====

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-04-18 20:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-31 10:47 [Bug c++/109357] New: GCC 13.0.1: internal compiler error in cp/constexpr.cc:1685 kgledits at cisco dot com
2023-03-31 17:00 ` [Bug c++/109357] [12/13 Regression] " xry111 at gcc dot gnu.org
2023-03-31 17:11 ` jakub at gcc dot gnu.org
2023-04-15  2:25 ` jason at gcc dot gnu.org
2023-04-15 16:35 ` cvs-commit at gcc dot gnu.org
2023-04-18 20:46 ` [Bug c++/109357] [12 " jason at gcc dot gnu.org
2023-04-18 20:46 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).