DOCUMENT:Q136069 02-AUG-2001 [visualc] TITLE :FIX: Visual C++ Build Process Won't Return If Missing ')' PRODUCT :Microsoft C Compiler PROD/VER::2.0,2.10,2.20 OPER/SYS: KEYWORDS:kbbuglist kbfixlist ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual C++, versions 2.0, 2.10, 2.20 ------------------------------------------------------------------------------- SYMPTOMS ======== When the left parenthesis ')' is missing from the sample code listed below, which uses template, the Microsoft Visual C++ version 2.x build process will not return. However, you can choose Stop Build from the Project menu to cause the process to terminate with the following messages: cl.exe terminated at user request. Tool execution cancelled by user. Test.obj - 0 error(s), 0 warning(s) RESOLUTION ========== To work around this problem, add back the missing parenthesis. STATUS ====== Microsoft has confirmed this to be a bug in the products listed at the beginning of this article. This bug was corrected in Microsoft Visual C++, 32-bit Edition, version 4.0. MORE INFORMATION ================ Sample Code to Reproduce Problem -------------------------------- /* No special compile options needed */ template class CTest { public: method(); }; template CTest::method(() // Note the extra '(' here. The // compile on will never complete. { } Additional query words: 2.00 2.10 2.20 ====================================================================== Keywords : kbbuglist kbfixlist Technology : kbVCsearch kbAudDeveloper kbVC200 Version : :2.0,2.10,2.20 Issue type : kbbug Solution Type : kbfix ============================================================================= 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.