* [Bug c++/111934] ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065
2023-10-23 12:09 [Bug c++/111934] New: ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065 vincenzo.innocente at cern dot ch
@ 2023-10-23 12:09 ` vincenzo.innocente at cern dot ch
2023-10-23 17:14 ` pinskia at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: vincenzo.innocente at cern dot ch @ 2023-10-23 12:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111934
--- Comment #1 from vincenzo Innocente <vincenzo.innocente at cern dot ch> ---
sorry missed the version
gcc version 14.0.0 20231021 (experimental) [master r14-4817-g405a4140fc3] (GCC)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/111934] ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065
2023-10-23 12:09 [Bug c++/111934] New: ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065 vincenzo.innocente at cern dot ch
2023-10-23 12:09 ` [Bug c++/111934] " vincenzo.innocente at cern dot ch
@ 2023-10-23 17:14 ` pinskia at gcc dot gnu.org
2023-10-24 9:31 ` vincenzo.innocente at cern dot ch
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-10-23 17:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111934
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Could not reproduce it with r14-4823-g8abddb187b33480d8827f44ec655f45734a1749d
.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/111934] ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065
2023-10-23 12:09 [Bug c++/111934] New: ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065 vincenzo.innocente at cern dot ch
2023-10-23 12:09 ` [Bug c++/111934] " vincenzo.innocente at cern dot ch
2023-10-23 17:14 ` pinskia at gcc dot gnu.org
@ 2023-10-24 9:31 ` vincenzo.innocente at cern dot ch
2023-11-12 23:33 ` pinskia at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: vincenzo.innocente at cern dot ch @ 2023-10-24 9:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111934
--- Comment #3 from vincenzo Innocente <vincenzo.innocente at cern dot ch> ---
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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/111934] ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065
2023-10-23 12:09 [Bug c++/111934] New: ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065 vincenzo.innocente at cern dot ch
` (2 preceding siblings ...)
2023-10-24 9:31 ` vincenzo.innocente at cern dot ch
@ 2023-11-12 23:33 ` pinskia at gcc dot gnu.org
2023-11-12 23:37 ` pinskia at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-12 23:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111934
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is interesting, I cannot reproduce it locally with
r14-5371-g93e92b2e5d6866 .
but with the version in godbolt I could (r14-5368-ge0787da263322f).
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/111934] ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065
2023-10-23 12:09 [Bug c++/111934] New: ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065 vincenzo.innocente at cern dot ch
` (3 preceding siblings ...)
2023-11-12 23:33 ` pinskia at gcc dot gnu.org
@ 2023-11-12 23:37 ` pinskia at gcc dot gnu.org
2023-11-12 23:42 ` pinskia at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-12 23:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111934
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
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 ` .
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/111934] ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065
2023-10-23 12:09 [Bug c++/111934] New: ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065 vincenzo.innocente at cern dot ch
` (4 preceding siblings ...)
2023-11-12 23:37 ` pinskia at gcc dot gnu.org
@ 2023-11-12 23:42 ` pinskia at gcc dot gnu.org
2023-11-12 23:53 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-12 23:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111934
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 56565
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56565&action=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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/111934] ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065
2023-10-23 12:09 [Bug c++/111934] New: ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065 vincenzo.innocente at cern dot ch
` (5 preceding siblings ...)
2023-11-12 23:42 ` pinskia at gcc dot gnu.org
@ 2023-11-12 23:53 ` pinskia at gcc dot gnu.org
2023-11-12 23:59 ` pinskia at gcc dot gnu.org
2023-11-13 0:01 ` [Bug c++/111934] ICE internal compiler error: in discriminator_for_local_entity after undefined decl defining a `thread_local auto` and weakref/alias attribute had been used before pinskia at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-12 23:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111934
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 56566
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56566&action=edit
Reduced testcase
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/111934] ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065
2023-10-23 12:09 [Bug c++/111934] New: ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065 vincenzo.innocente at cern dot ch
` (6 preceding siblings ...)
2023-11-12 23:53 ` pinskia at gcc dot gnu.org
@ 2023-11-12 23:59 ` pinskia at gcc dot gnu.org
2023-11-13 0:01 ` [Bug c++/111934] ICE internal compiler error: in discriminator_for_local_entity after undefined decl defining a `thread_local auto` and weakref/alias attribute had been used before pinskia at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-12 23:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111934
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2023-11-12
Status|UNCONFIRMED |NEW
Keywords|needs-reduction |
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/111934] ICE internal compiler error: in discriminator_for_local_entity after undefined decl defining a `thread_local auto` and weakref/alias attribute had been used before
2023-10-23 12:09 [Bug c++/111934] New: ICE internal compiler error: in discriminator_for_local_entity, at cp/mangle.cc:2065 vincenzo.innocente at cern dot ch
` (7 preceding siblings ...)
2023-11-12 23:59 ` pinskia at gcc dot gnu.org
@ 2023-11-13 0:01 ` pinskia at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-13 0:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111934
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|ICE internal compiler |ICE internal compiler
|error: in |error: in
|discriminator_for_local_ent |discriminator_for_local_ent
|ity, at cp/mangle.cc:2065 |ity after undefined decl
| |defining a `thread_local
| |auto` and weakref/alias
| |attribute had been used
| |before
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
note alias attribute also causes the ICE.
^ permalink raw reply [flat|nested] 10+ messages in thread