Help and Support
 

powered byLive Search

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

Article ID:930198
Last Review:April 13, 2007
Revision:2.3
On This Page

SYMPTOMS

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

Back to the top

RESOLUTION

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)
Note The MSDN Code Gallery displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

For more information about the MSDN Code Gallery, visit the following Microsoft Web site:
http://code.msdn.microsoft.com/KB930198 (http://code.msdn.microsoft.com/KB930198)

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, 32-bit versions
File nameFile versionFile sizeDateTime
C1.dll14.0.50727.789630,78409-Jan-200719:37
C1.dll14.0.50727.789950,78410-Jan-200700:53
C1.dll14.0.50727.7891,543,16810-Jan-200700:52
C1.dll14.1.60511.0528,38410-Jan-200708:22
C1.dll14.1.60511.0528,38410-Jan-200708:22
C1.dll14.1.60511.0524,28810-Jan-200708:22
C1.dll14.0.50727.789581,63210-Jan-200700:52
C1.dll14.0.50727.789589,82410-Jan-200700:53
C1ast.dll14.0.50727.789778,24009-Jan-200719:19
C1xx.dll14.0.50727.7893,706,36810-Jan-200700:53
C1xx.dll14.0.50727.7896,529,53610-Jan-200700:52
C1xx.dll14.1.60511.02,146,30410-Jan-200708:22
C1xx.dll14.1.60511.02,146,30410-Jan-200708:22
C1xx.dll14.1.60511.02,138,11210-Jan-200708:22
C1xx.dll14.0.50727.7892,285,56809-Jan-200719:38
C1xx.dll14.0.50727.7892,183,16810-Jan-200700:52
C1xx.dll14.0.50727.7892,191,36010-Jan-200700:53
C1xxast.dll14.0.50727.7892,498,56009-Jan-200719:19
C2.dll14.0.50727.7892,265,08809-Jan-200719:24
C2.dll14.0.50727.7893,596,28810-Jan-200700:53
C2.dll14.0.50727.7897,168,00010-Jan-200700:52
C2.dll14.1.60511.11,298,43210-Jan-200708:22
C2.dll14.1.60511.01,507,32810-Jan-200708:22
C2.dll14.1.60511.01,261,56810-Jan-200708:22
C2.dll14.0.50727.7892,486,27210-Jan-200700:52
C2.dll14.0.50727.7892,199,55210-Jan-200700:53
Pgodb80.dll8.0.50727.78961,44009-Jan-200719:20
Pgodb80.dll8.0.50727.78970,65610-Jan-200700:53
Pgodb80.dll8.0.50727.789130,04810-Jan-200700:52
Pgodb80.dll8.0.50727.78945,05609-Jan-200719:21
Pgodb80.dll8.0.50727.78938,40010-Jan-200700:53
Pgodb80.dll8.0.50727.78981,40810-Jan-200700:52
Visual Studio 2005, Itanium-based versions
File nameFile versionFile sizeDateTimePlatform
C1.dll14.0.50727.7891,543,16810-Jan-200702:06IA-64
C1xx.dll14.0.50727.7896,529,53610-Jan-200702:06IA-64
C2.dll14.0.50727.7897,168,00010-Jan-200702:05IA-64
Pgodb80.dll8.0.50727.789130,04810-Jan-200702:00IA-64
Pgort80.dll8.0.50727.78981,40810-Jan-200702:00IA-64

Back to the top

STATUS

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

Back to the top

MORE INFORMATION

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 (http://support.microsoft.com/kb/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 (http://support.microsoft.com/kb/928957/) Visual Studio 2005 Service Pack 1 release notes

Back to the top

Steps to reproduce the problem

1.Install Visual Studio 2005 SP1.
2.Start Visual Studio 2005.
3.On the File menu, click New, and then click Project.
4.Click Visual C++, click Class Library, type MyTemplates in the Name box, and then click OK.
5.In Solution Explorer, right-click MyTemplates.cpp, and then click Open.
6.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;
}
7.On the Build menu, click Rebuild Solution.

Back to the top


APPLIES TO
Microsoft Visual Studio 2005 Standard Edition
Microsoft Visual Studio 2005 Professional Edition
Microsoft Visual Studio 2005 Express Edition

Back to the top

Keywords: 
kbvs2005postsp1fix kbfix kbbug kbqfe kbpubtypekc KB930198

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Need More Help?
    Contact a Support professional by Email, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.