stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <>
Subject [jira] Created: (STDCXX-73) [MSVC 8] std::type_info declared in the wrong namespace
Date Wed, 30 Nov 2005 01:23:31 GMT
[MSVC 8] std::type_info declared in the wrong namespace

         Key: STDCXX-73
     Project: STDCXX
        Type: Bug
  Components: 18. Language Support  
    Versions: 4.1.2    
 Environment: MSVC 8.0, Windows
    Reporter: Martin Sebor
 Assigned to: Martin Sebor 
    Priority: Blocker
     Fix For: 4.1.3

$ cat t.cpp && nmake -nologo t.exe
#include <typeinfo>

void foo (const std::type_info&) { }

int main ()
    foo (typeid (int));

        cl  -D_RWCONFIG=15d_msvc_8_0 -Ic:\contrib\cygwin\build\sebor\dev-hal/include -I.\..\..\..\../include
-Ic:\contrib\cygwin\build\sebor\dev-hal\tests\stdlib\support/../include  -Ic:/contrib/cygwin/build/sebor/dev-hal/include/ansi
-I.\..\..\..\.. -Ic:\contrib\cygwin\build\sebor\dev-hal -Ic:\contrib\cygwin\build\sebor\dev-hal\tests\stdlib\support
-I. -nologo -EHsc -Zc:wchar_t -MDd -W3 -Zi -GR -GF -RTC1 -D_CRT_SECURE_NO_DEPRECATE  -c t.cpp
t.cpp(7) : error C2664: 'foo' : cannot convert parameter 1 from 'const type_info' to 'const
std::type_info &'
        Reason: cannot convert from 'const type_info' to 'const std::type_info'
        No user-defined-conversion operator available that can perform this conversion, or
the operator cannot be called
NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' :
return code '0x2'

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message