public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/94297] New: std::replace internal compiler error
@ 2020-03-24 10:02 jens.seifert at de dot ibm.com
2020-03-24 10:06 ` [Bug target/94297] PPCLE " jens.seifert at de dot ibm.com
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: jens.seifert at de dot ibm.com @ 2020-03-24 10:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94297
Bug ID: 94297
Summary: std::replace internal compiler error
Product: gcc
Version: 8.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jens.seifert at de dot ibm.com
Target Milestone: ---
#include <algorithm>
#include <string>
void patch(std::string& s)
{
std::replace(s.begin(),s.end(),'.','-');
}
gcc replace.C
In file included from
/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/uniform_int_dist.h:35,
from
/opt/rh/devtoolset-8/root/usr/include/c++/8/bits/stl_algo.h:66,
from /opt/rh/devtoolset-8/root/usr/include/c++/8/algorithm:62,
from replace.C:1:
/opt/rh/devtoolset-8/root/usr/include/c++/8/limits:1677:7: internal compiler
error: Segmentation fault
max() _GLIBCXX_USE_NOEXCEPT { return __DBL_MAX__; }
^~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccFTVYLT.out file, please attach this to
your bugreport.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/94297] PPCLE std::replace internal compiler error
2020-03-24 10:02 [Bug c++/94297] New: std::replace internal compiler error jens.seifert at de dot ibm.com
@ 2020-03-24 10:06 ` jens.seifert at de dot ibm.com
2020-03-24 17:09 ` mpolacek at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jens.seifert at de dot ibm.com @ 2020-03-24 10:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94297
Jens Seifert <jens.seifert at de dot ibm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|std::replace internal |PPCLE std::replace internal
|compiler error |compiler error
Component|c++ |target
CC| |wschmidt at gcc dot gnu.org
--- Comment #1 from Jens Seifert <jens.seifert at de dot ibm.com> ---
Same code compile on x86 on same version of compiler.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/94297] PPCLE std::replace internal compiler error
2020-03-24 10:02 [Bug c++/94297] New: std::replace internal compiler error jens.seifert at de dot ibm.com
2020-03-24 10:06 ` [Bug target/94297] PPCLE " jens.seifert at de dot ibm.com
@ 2020-03-24 17:09 ` mpolacek at gcc dot gnu.org
2020-03-24 19:40 ` jens.seifert at de dot ibm.com
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-03-24 17:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94297
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I can't reproduce this with latest trunk on ppc64le. Can you please provide a
preprocessed source file for this ICE?
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/94297] PPCLE std::replace internal compiler error
2020-03-24 10:02 [Bug c++/94297] New: std::replace internal compiler error jens.seifert at de dot ibm.com
2020-03-24 10:06 ` [Bug target/94297] PPCLE " jens.seifert at de dot ibm.com
2020-03-24 17:09 ` mpolacek at gcc dot gnu.org
@ 2020-03-24 19:40 ` jens.seifert at de dot ibm.com
2020-03-24 20:12 ` mpolacek at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jens.seifert at de dot ibm.com @ 2020-03-24 19:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94297
--- Comment #3 from Jens Seifert <jens.seifert at de dot ibm.com> ---
Created attachment 48110
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48110&action=edit
Pre-processed file created using -save-temps
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/94297] PPCLE std::replace internal compiler error
2020-03-24 10:02 [Bug c++/94297] New: std::replace internal compiler error jens.seifert at de dot ibm.com
` (2 preceding siblings ...)
2020-03-24 19:40 ` jens.seifert at de dot ibm.com
@ 2020-03-24 20:12 ` mpolacek at gcc dot gnu.org
2020-03-24 20:30 ` jens.seifert at de dot ibm.com
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-03-24 20:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94297
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Still can't reproduce with mainline trunk/9/8.
Since I happen to work on DTS, I've also tried
devtoolset-8-gcc-8.2.1-3.el7.ppc64le and devtoolset-8-gcc-8.3.1-3.2.el7.ppc64le
but couldn't reproduce it either. Did you use any special options not
mentioned in this bug report?
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/94297] PPCLE std::replace internal compiler error
2020-03-24 10:02 [Bug c++/94297] New: std::replace internal compiler error jens.seifert at de dot ibm.com
` (3 preceding siblings ...)
2020-03-24 20:12 ` mpolacek at gcc dot gnu.org
@ 2020-03-24 20:30 ` jens.seifert at de dot ibm.com
2020-04-07 14:56 ` pinskia at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jens.seifert at de dot ibm.com @ 2020-03-24 20:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94297
--- Comment #5 from Jens Seifert <jens.seifert at de dot ibm.com> ---
No options. Same failure with -O2. System is a RHEL 7.5.
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-8/root/usr/libexec/gcc/ppc64le-redhat-linux/8/lto-wrapper
Target: ppc64le-redhat-linux
Configured with: ../configure --enable-bootstrap
--enable-languages=c,c++,fortran,lto --prefix=/opt/rh/devtoolset-8/root/usr
--mandir=/opt/rh/devtoolset-8/root/usr/share/man
--infodir=/opt/rh/devtoolset-8/root/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared
--enable-threads=posix --enable-checking=release
--enable-targets=powerpcle-linux --disable-multilib --with-system-zlib
--enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id --with-gcc-major-version-only
--with-linker-hash-style=gnu --with-default-libstdcxx-abi=gcc4-compatible
--enable-plugin --enable-initfini-array
--with-isl=/builddir/build/BUILD/gcc-8.3.1-20190311/obj-ppc64le-redhat-linux/isl-install
--disable-libmpx --enable-gnu-indirect-function --enable-secureplt
--with-long-double-128 --with-cpu-32=power8 --with-tune-32=power8
--with-cpu-64=power8 --with-tune-64=power8 --build=ppc64le-redhat-linux
Thread model: posix
gcc version 8.3.1 20190311 (Red Hat 8.3.1-3) (GCC)
No error with:
gcc -std=gnu++98 replace.C
gcc -std=gnu++03 replace.C
Error with:
gcc -std=gnu++11 replace.C
gcc -std=gnu++17 replace.C
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/94297] PPCLE std::replace internal compiler error
2020-03-24 10:02 [Bug c++/94297] New: std::replace internal compiler error jens.seifert at de dot ibm.com
` (4 preceding siblings ...)
2020-03-24 20:30 ` jens.seifert at de dot ibm.com
@ 2020-04-07 14:56 ` pinskia at gcc dot gnu.org
2020-04-07 17:11 ` jens.seifert at de dot ibm.com
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2020-04-07 14:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94297
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 94519 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/94297] PPCLE std::replace internal compiler error
2020-03-24 10:02 [Bug c++/94297] New: std::replace internal compiler error jens.seifert at de dot ibm.com
` (5 preceding siblings ...)
2020-04-07 14:56 ` pinskia at gcc dot gnu.org
@ 2020-04-07 17:11 ` jens.seifert at de dot ibm.com
2020-04-07 17:12 ` jens.seifert at de dot ibm.com
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jens.seifert at de dot ibm.com @ 2020-04-07 17:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94297
Jens Seifert <jens.seifert at de dot ibm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #7 from Jens Seifert <jens.seifert at de dot ibm.com> ---
Too old libgmp got picked up. Setting LD_LIBRARY_PATH=/lib64 solved the issue.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/94297] PPCLE std::replace internal compiler error
2020-03-24 10:02 [Bug c++/94297] New: std::replace internal compiler error jens.seifert at de dot ibm.com
` (6 preceding siblings ...)
2020-04-07 17:11 ` jens.seifert at de dot ibm.com
@ 2020-04-07 17:12 ` jens.seifert at de dot ibm.com
2020-04-07 17:14 ` jens.seifert at de dot ibm.com
2020-04-07 17:26 ` schwab@linux-m68k.org
9 siblings, 0 replies; 11+ messages in thread
From: jens.seifert at de dot ibm.com @ 2020-04-07 17:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94297
--- Comment #8 from Jens Seifert <jens.seifert at de dot ibm.com> ---
Too old libgmp got picked up. Setting LD_LIBRARY_PATH=/lib64 solved the issue.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/94297] PPCLE std::replace internal compiler error
2020-03-24 10:02 [Bug c++/94297] New: std::replace internal compiler error jens.seifert at de dot ibm.com
` (7 preceding siblings ...)
2020-04-07 17:12 ` jens.seifert at de dot ibm.com
@ 2020-04-07 17:14 ` jens.seifert at de dot ibm.com
2020-04-07 17:26 ` schwab@linux-m68k.org
9 siblings, 0 replies; 11+ messages in thread
From: jens.seifert at de dot ibm.com @ 2020-04-07 17:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94297
Jens Seifert <jens.seifert at de dot ibm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #9 from Jens Seifert <jens.seifert at de dot ibm.com> ---
Too old libgmp got picked up. Setting LD_LIBRARY_PATH=/lib64 solved the issue.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/94297] PPCLE std::replace internal compiler error
2020-03-24 10:02 [Bug c++/94297] New: std::replace internal compiler error jens.seifert at de dot ibm.com
` (8 preceding siblings ...)
2020-04-07 17:14 ` jens.seifert at de dot ibm.com
@ 2020-04-07 17:26 ` schwab@linux-m68k.org
9 siblings, 0 replies; 11+ messages in thread
From: schwab@linux-m68k.org @ 2020-04-07 17:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94297
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |INVALID
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2020-04-07 17:26 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-24 10:02 [Bug c++/94297] New: std::replace internal compiler error jens.seifert at de dot ibm.com
2020-03-24 10:06 ` [Bug target/94297] PPCLE " jens.seifert at de dot ibm.com
2020-03-24 17:09 ` mpolacek at gcc dot gnu.org
2020-03-24 19:40 ` jens.seifert at de dot ibm.com
2020-03-24 20:12 ` mpolacek at gcc dot gnu.org
2020-03-24 20:30 ` jens.seifert at de dot ibm.com
2020-04-07 14:56 ` pinskia at gcc dot gnu.org
2020-04-07 17:11 ` jens.seifert at de dot ibm.com
2020-04-07 17:12 ` jens.seifert at de dot ibm.com
2020-04-07 17:14 ` jens.seifert at de dot ibm.com
2020-04-07 17:26 ` schwab@linux-m68k.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).