[Bug c++/109357] New: GCC 13.0.1: internal compiler error in cp/constexpr.cc:1685
kgledits at cisco dot com
gcc-bugzilla@gcc.gnu.org
Fri Mar 31 10:47:02 GMT 2023
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.
====
More information about the Gcc-bugs
mailing list