Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
4.1.2
-
None
-
None
-
MSVC 8.0
Description
Bug Details: type_info pollutes the global scope
______________________________________________________________________
Bug ID: FDBK40150
Problem Type: Bug
Status: Closed
Resolution: Won't Fix
Microsoft Status: Reviewed
Opened Date: 2005-11-09 12:10:56
Opened By: Martin Sebor
Product/Technology: Visual C++
Version: Visual Studio 2005
Product Language: English
Category: Libraries
OS: Windows 2000 Professional
OS Language: US English
Submission Language: English
______________________________________________________________________
Description:
______________________________________________________________________
Opened by Martin Sebor on 2005-11-09 at 12:10:56
The symbol type_info introduced by the C++ standard library into the global scope causes clashes with user-defined symbol of the same name.
______________________________________________________________________
Resolved as Won't Fix by Microsoft on 2005-11-15 at 14:14:13
______________________________________________________________________
Thank you for reporting this. When support was added for these templates, there were not a proper namespace support in the compiler. Changing this right now is not possible because of backward compatability. We would really like to fix this but unfortunately without other substantial changes we won't be able to do so.
Thanks,
Nikola Dudar
Visual C++
______________________________________________________________________
Steps to Reproduce:
$ cat t.cpp && cl -EHsc -c t.cpp
#include <iostream>
template <class T>
void type_info () { }
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
t.cpp
t.cpp(4) : error C2904: 'type_info' : name already used for a template in the current scope
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\typeinfo(43) : see declaration of 'type_info'
______________________________________________________________________
Actual Results: Compilation errors.
Expected Results: No errors.
Attachments
Issue Links
- relates to
-
STDCXX-73 [MSVC 8] std::type_info declared in the wrong namespace
- Closed