This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 98188

Summary: Specialized template method and member has same unique name.
Product: cnd Reporter: Alexander Simon <alexvsimon>
Component: Code ModelAssignee: Sergey Grinev <sergius>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 92138    

Description Alexander Simon 2007-03-19 12:34:55 UTC
Code example taken from library class
std::numpunct::_M_initialize_numpunct(__c_locale).
------------------------
  template<typename _CharT>
    class numpunct : public locale::facet
    { 
    public:
      typedef _CharT			char_type;
      // For use at construction time only.
      void
      _M_initialize_numpunct(__c_locale __cloc = NULL);
    };

    template<>
    void
    numpunct<char>::_M_initialize_numpunct(__c_locale __cloc);
------------------------
Both methods _M_initialize_numpunct has same unique name:
FUNCTION:std::numpunct::_M_initialize_numpunct(__c_locale)

Methods should have different unique names.
Comment 1 Sergey Grinev 2007-06-28 16:53:32 UTC
fixed by next commit:
http://deadlock.netbeans.org/fisheye/changelog/netbeans/?cs=grgich_hills:sergius:20070628154113

now unique names are:

UNIQUE NAME FUNCTION:std::numpunct::_M_initialize_numpunct(__c_locale)
UNIQUE NAME FUNCTION:std::numpunct<char>::_M_initialize_numpunct(__c_locale)

from user point of view it can be saw by correct gotodeclaration on unspecialized _M_initialize_numpunct
Comment 2 soldatov 2007-12-13 12:35:42 UTC
created new bug (issue 123944)