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 - Specialized template method and member has same unique name.
Summary: Specialized template method and member has same unique name.
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Sergey Grinev
URL:
Keywords:
Depends on:
Blocks: 92138
  Show dependency tree
 
Reported: 2007-03-19 12:34 UTC by Alexander Simon
Modified: 2007-12-13 12:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)