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: "geoffk at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Oct 2007 03:44:52 -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 #14 from geoffk at gcc dot gnu dot org 2007-10-30 03:44 -------
I don't fully understand the linker error message. It seems to me that if
there's a reference to the typeinfo name then that just means the linker
shouldn't be discarding it.
The original problem was encountered on Darwin and so that's where the testcase
would be expected to fail.
> Should the typeinfo for an anonymous namespace class be local if it inherits
> from a class that is outside the anonymous namespace?
Yes.
> If that is the case, what should typeid(reference to base of anonymous class
> instance) in another module return?
The same thing it does now, which I believe is the typeinfo of the base class.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33871