This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11685] New: typeinfo is not demangled in error messages
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jul 2003 17:10:13 -0000
- Subject: [Bug c++/11685] New: typeinfo is not demangled in error messages
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11685
Summary: typeinfo is not demangled in error messages
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at physics dot uc dot edu
CC: gcc-bugs at gcc dot gnu dot org,gdr at gcc dot gnu dot
org
Code:
#include <typeinfo>
int get_uuidof( const std::type_info& inf );
template< class T ,int i = get_uuidof( typeid(T) ) >
struct TBoaz{
} ;
template TBoaz<int>;
Gives the following error:
prnew10.cc:8: error: non-constant `get_uuidof(const std::type_info&)((&_ZTIi))'
cannot be used as template argument
Notice _ZTIi is not demangled to typeid(int).