Microsoft KB Archive/241217

= BUG: Source Browser shows the decorated name instead of the undecorated name for member template functions =

Article ID: 241217

Article Last Modified on 9/1/2005

-

APPLIES TO


 * Microsoft Visual C++ 6.0 Enterprise Edition
 * Microsoft Visual C++ 6.0 Professional Edition
 * Microsoft Visual C++ 6.0 Standard Edition

-



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.



Steps to reproduce the behavior
  Compile the following code with the Generate Browser Info option selected in Project Settings dialog box: class CC { public: template    K test(K k) { return k; } };

int main {   CC c;    int d=5; int i = c.test(d); return 0; }                        On the Tools menu, click Source Browser. In the Select Query list box, click Definitions And References. 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.

<div class="references_section">