DOCUMENT:Q241217 07-MAY-2001 [visualc] TITLE :BUG: Source Browser Shows Decorated Name for Member Template PRODUCT :Microsoft C Compiler PROD/VER:winnt:6.0 OPER/SYS: KEYWORDS:kbLangCPP kbVC600bug kbDSupport ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual C++, 32-bit Enterprise Edition, version 6.0 - Microsoft Visual C++, 32-bit Professional Edition, version 6.0 - Microsoft Visual C++, 32-bit Learning Edition, version 6.0 ------------------------------------------------------------------------------- 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 this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATION ================ Steps to Reproduce Behavior --------------------------- 1. 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; } 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 additional information on the Browser Toolkit, click the article number below to view the article in the Microsoft Knowledge Base: Q153393 FILE: Browser Toolkits for Microsoft Visual C++ Additional query words: member template, name decoration and undecoration, source browser, BSC API ====================================================================== Keywords : kbLangCPP kbVC600bug kbDSupport Technology : kbVCsearch kbAudDeveloper kbVC600 kbVC32bitSearch Version : winnt:6.0 Issue type : kbbug ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2001.