[Bug c++/11685] New: typeinfo is not demangled in error messages
pinskia at physics dot uc dot edu
gcc-bugzilla@gcc.gnu.org
Sun Jul 27 17:10:00 GMT 2003
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).
More information about the Gcc-bugs
mailing list