This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/33871] [4.3 Regression] typeinfo name referenced in ... defined in discarded section



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]