Microsoft KB Archive/930198

= FIX: Certain template code does not compile, and error C2244 occurs after you install Visual Studio 2005 Service Pack 1 =

Article ID: 930198

Article Last Modified on 4/13/2007

-

APPLIES TO


 * Microsoft Visual Studio 2005 Standard Edition
 * Microsoft Visual Studio 2005 Professional Edition
 * Microsoft Visual Studio 2005 Express Edition

-



SYMPTOMS
After you install Microsoft Visual Studio 2005 Service Pack 1 (SP1), certain template code does not compile. Additionally, error C2244 occurs.



Hotfix information
A supported hotfix is now available from Microsoft. But the hotfix is intended only to correct the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Visual Studio 2005 service pack that contains this hotfix. To resolve this problem immediately, visit the following Microsoft Web site:

http://go.microsoft.com/fwlink/?linkid=87465

Prerequisites
You must install Visual Studio 2005 SP1 before you apply this hotfix.

Restart requirement
You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information
This hotfix does not replace any other hotfixes.

File information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

Visual Studio 2005, Itanium-based versions


STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

For more information about Visual Studio 2005 Service Pack 1, click the following article number to view the article in the Microsoft Knowledge Base:

928957 Visual Studio 2005 Service Pack 1 release notes

Steps to reproduce the problem
 Install Visual Studio 2005 SP1. Start Visual Studio 2005. On the File menu, click New, and then click Project. Click Visual C++, click Class Library, type MyTemplates in the Name box, and then click OK. In Solution Explorer, right-click MyTemplates.cpp, and then click Open.  In the MyTemplates.cpp file, add the following lines of code after the two #include statements. template <class T> class A { public: typedef int N_A; };

template <class T> class B : public A<T> { public: typename A<T>::N_A test; };

template <class T> typename A<T>::N_A B<T>::test {    return 0; } </li> On the Build menu, click Rebuild Solution.</li></ol>

Keywords: kbvs2005postsp1fix kbfix kbbug kbhotfixserver kbqfe kbpubtypekc KB930198

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.