This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33871] [4.3 Regression] typeinfo name referenced in ... defined in discarded section
- From: "gcc at magfr dot user dot lysator dot liu dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Nov 2007 07:47:05 -0000
- Subject: [Bug c++/33871] [4.3 Regression] typeinfo name referenced in ... defined in discarded section
- References: <bug-33871-5606@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #28 from gcc at magfr dot user dot lysator dot liu dot se 2007-11-03 07:47 -------
That both files are named S1.C doesn't matter.
If one do
cp S1.C S2.C
g++ -c S1.C
g++ -c S2.C
g++ S1.o S2.o
one get the same behaviour and the same linker error.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33871