You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2007/03/23 16:33:32 UTC

[jira] Updated: (STDCXX-74) [MSVC 8.0] type_info pollutes the global scope

     [ https://issues.apache.org/jira/browse/STDCXX-74?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor updated STDCXX-74:
-------------------------------

    Priority: Minor  (was: Major)

> [MSVC 8.0] type_info pollutes the global scope
> ----------------------------------------------
>
>                 Key: STDCXX-74
>                 URL: https://issues.apache.org/jira/browse/STDCXX-74
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: External
>    Affects Versions: 4.1.2
>         Environment: MSVC 8.0
>            Reporter: Martin Sebor
>         Assigned To: Martin Sebor
>            Priority: Minor
>
> From http://lab.msdn.microsoft.com/ProductFeedback/viewfeedback.aspx?feedbackid=4da481b4-42ed-481f-aa9d-023b531f3bfb:
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.