This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/56468] Clang exposes bug with unexpected forward-declaration of type_info
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 27 Feb 2013 09:33:27 +0000
- Subject: [Bug libstdc++/56468] Clang exposes bug with unexpected forward-declaration of type_info
- Auto-submitted: auto-generated
- References: <bug-56468-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56468
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-02-27 09:33:27 UTC ---
It's because of the implicit declaration of std::type_info, G++ correctly
diagnoses similar cases with altered namespace names or type names, it only
happens for std::type_info. I see no harm in adding an explicit declaration to
the libstdc++ header so it works with clang and other compilers that don't
declare std::type_info automatically.