BUG: Source Browser shows the decorated name instead of the undecorated name for member template functions (241217)



The information in this article applies to:

  • Microsoft Visual C++, 32-bit Enterprise Edition 6.0
  • Microsoft Visual C++, 32-bit Professional Edition 6.0
  • Microsoft Visual C++, 32-bit Learning Edition 6.0

This article was previously published under Q241217

SYMPTOMS

Source Browser shows the decorated name instead of the undecorated name for a member template function.

CAUSE

The underlying name decoration and undecoration scheme does not handle member template functions correctly.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

Steps to reproduce the behavior

  1. Compile the following code with the Generate Browser Info option selected in Project Settings dialog box:
    class CC
    {
    public:
       
        template <typename K>
        K test(K k) { return k; }
    };
    
    int main()
    {
        CC c;
        int d=5;
        int i = c.test(d);
        return 0;
    }
    						
  2. On the Tools menu, click Source Browser.
  3. In the Select Query list box, click Definitions And References.
  4. Select the member template function test.
The following decorated name appears:
?test@CC@@QAE?AVtemplate-parameter-BAB@Vtemplate-parameter-BAB@@Z
				
Note The same problem occurs if you use the BSC APIs from the Browser ToolKit.

REFERENCES

For more information about C++ name decoration , click the following article number to view the article in the Microsoft Knowledge Base:

126845 Description of C++ name decoration


Modification Type:MajorLast Reviewed:9/1/2005
Keywords:kbfunctions kbtshoot kbBug kbLangCPP KB241217 kbAudEndUser