public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20357] Multiply defined assembler symbols for template instantiations
[not found] <bug-20357-4@http.gcc.gnu.org/bugzilla/>
@ 2024-03-25 4:06 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-25 4:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=20357
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Just for reference here is the ICE that is produced:
```
<source>:10:1: error: Two symbols with same comdat_group are not linked by the
same_comdat_group list.
10 | }
| ^
_ZN1XIXadL_Z1fvEEEC1Ev/8 (X<f>::X() [with void (* f)() = f])
Type: function definition analyzed alias cpp_implicit_alias
Visibility: semantic_interposition public weak comdat
comdat_group:_ZN1XIXadL_Z1fvEEEC5Ev one_only
Same comdat group as: _ZN1XIXadL_Z1fvEEEC2Ev/7
previous sharing asm name: 5
References: _ZN1XIXadL_Z1fvEEEC2Ev/7 (alias)
Referring:
Function flags:
Called by: main/2
Calls:
_ZN1XIXadL_Z1fvEEEC1Ev/5 (X<f>::X() [with void (* f)() = f])
Type: function definition analyzed alias cpp_implicit_alias
Visibility: semantic_interposition public weak comdat
comdat_group:_ZN1XIXadL_Z1fvEEEC5Ev one_only
Same comdat group as: _ZN1XIXadL_Z1fvEEEC2Ev/4
next sharing asm name: 8
References: _ZN1XIXadL_Z1fvEEEC2Ev/4 (alias)
Referring:
Function flags:
Called by: _Z41__static_initialization_and_destruction_0v/9
Calls:
```
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/20357] Multiply defined assembler symbols for template instantiations
2005-03-07 9:49 [Bug c++/20357] New: " heinlein at informatik dot uni-ulm dot de
2005-03-07 14:30 ` [Bug c++/20357] " lerdsuwa at gcc dot gnu dot org
@ 2005-03-07 15:11 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-07 15:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-07 15:11 -------
What is happening here is that multiple decls for f is getting in the way. Either we have to look at the
DECL_UID or change the C++ front-end to only have one decl for f.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20357
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/20357] Multiply defined assembler symbols for template instantiations
2005-03-07 9:49 [Bug c++/20357] New: " heinlein at informatik dot uni-ulm dot de
@ 2005-03-07 14:30 ` lerdsuwa at gcc dot gnu dot org
2005-03-07 15:11 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2005-03-07 14:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-07 14:29 -------
Confirm as a bug. It's still present in the mainline.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-03-07 14:29:51
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20357
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-03-25 4:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-20357-4@http.gcc.gnu.org/bugzilla/>
2024-03-25 4:06 ` [Bug c++/20357] Multiply defined assembler symbols for template instantiations pinskia at gcc dot gnu.org
2005-03-07 9:49 [Bug c++/20357] New: " heinlein at informatik dot uni-ulm dot de
2005-03-07 14:30 ` [Bug c++/20357] " lerdsuwa at gcc dot gnu dot org
2005-03-07 15:11 ` pinskia at gcc dot gnu dot 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).