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++/11685] New: typeinfo is not demangled in error messages


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


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