public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20357] New: Multiply defined assembler symbols for template instantiations
@ 2005-03-07 9:49 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
0 siblings, 2 replies; 3+ messages in thread
From: heinlein at informatik dot uni-ulm dot de @ 2005-03-07 9:49 UTC (permalink / raw)
To: gcc-bugs
The following code produces the assembler message:
"Error: symbol `_ZN1XIXadL_Z1fvEEEC1Ev' is already defined".
If the declaration of f in main is omitted, everything is fine.
typedef void (*Func) ();
template <Func f>
struct X { X () {} };
void f () {}
X<f> x;
int main () {
void f ();
X<f> x;
}
--
Summary: Multiply defined assembler symbols for template
instantiations
Product: gcc
Version: 3.3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: heinlein at informatik dot uni-ulm dot de
CC: gcc-bugs 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: Multiply defined assembler symbols for template instantiations 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
* [Bug c++/20357] Multiply defined assembler symbols for template instantiations
2005-03-07 9:49 [Bug c++/20357] New: Multiply defined assembler symbols for template instantiations 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
end of thread, other threads:[~2005-03-07 15:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-07 9:49 [Bug c++/20357] New: Multiply defined assembler symbols for template instantiations 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).