[Bug c++/111934] ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111934 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed||2023-11-12 Status|UNCONFIRMED |NEW Keywords|needs-reduction | --- Comment #8 from Andrew Pinski --- Confirmed. Note the difference between my build and the others is due to: # if __GLIBC_PREREQ(2, 34) // Since glibc 2.34 all pthreads functions are usable without linking to // libpthread. # define _GLIBCXX_GTHREAD_USE_WEAK 0 # endif That is I have a newer glibc which causes __weakref__ not to be needed/used here. So next time please attach the preprocessed source when running into a bug in the front-end, because different versions of glibc might produce different preprocessed sources and not able to reproduce the issue.
[Bug c++/111934] ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111934 --- Comment #7 from Andrew Pinski --- Created attachment 56566 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56566=edit Reduced testcase
[Bug c++/111934] ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111934 --- Comment #6 from Andrew Pinski --- Created attachment 56565 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56565=edit unreduced testcase Ok, with this preprocessed source I am able to reproduce it locally. I have not looked into what is the difference on why I could reproduce it with the headers I have.
[Bug c++/111934] ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111934 --- Comment #5 from Andrew Pinski --- I tried `--param ggc-min-expand=0 --param ggc-min-heapsize=0` and it still does not ICE. The exact command line I tried: ``` [apinski@xeond2 upstream-gcc-match]$ ~/upstream-gcc-match/bin/gcc t.cc -DICE -g -g0 -Wall -pthread -O3 --param ggc-min-expand=0 --param ggc-min-heapsize=0 ``` One difference between my build and godbolt is I don't use `--enable-libstdcxx-debug ` .
[Bug c++/111934] ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111934 --- Comment #4 from Andrew Pinski --- This is interesting, I cannot reproduce it locally with r14-5371-g93e92b2e5d6866 . but with the version in godbolt I could (r14-5368-ge0787da263322f).
[Bug c++/111934] ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111934 --- Comment #3 from vincenzo Innocente --- with gcc version 14.0.0 20231024 (experimental) [master r14-4877-g724badcadf8] (GCC) I get the same ICE. Please note that one needs to include "iostream" (in my test compile with "-DICE") to trigger the ICE. w/o it just emits the syntax error as one would expect.
[Bug c++/111934] ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111934 --- Comment #2 from Andrew Pinski --- Could not reproduce it with r14-4823-g8abddb187b33480d8827f44ec655f45734a1749d .
[Bug c++/111934] ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111934 --- Comment #1 from vincenzo Innocente --- sorry missed the version gcc version 14.0.0 20231021 (experimental) [master r14-4817-g405a4140fc3] (GCC)