Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / January 2004

Tip: Looking for answers? Try searching our database.

Service pack for VC2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robert Krt - 22 Jan 2004 13:13 GMT
Hello!
I've hit the ICE (msc.cpp line 2701) compiling a solution in
VSnet2003(VC7.1). It worked in previous releases. Reading the newsgroups
I've found it is a bug. When is to be expected a service pack or a fix?

Bye,
Robert Krt.
David Lowndes - 22 Jan 2004 14:53 GMT
>I've hit the ICE (msc.cpp line 2701) compiling a solution in
>VSnet2003(VC7.1). It worked in previous releases. Reading the newsgroups
>I've found it is a bug. When is to be expected a service pack or a fix?

Robert,

I've not heard of any forthcoming SP for VS2003 - in fact it appears
that MS are only just getting round to the promised SP for VS2002 (a
MS person posted about the beta in these newsgroups earlier today).

If the problem is a blocking issue for you, you should contact MS
support (telephone). Sometimes there are limited release versions
available if there is no work-around (and the problem has been found
and fixed).

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
SoftwareRancher - 27 Jan 2004 21:21 GMT
Mabye the link http://support.microsoft.com/default.aspx?scid=kb;en-gb;824389 will be helpful (using "helpful" rather loosely).
Robert Krt - 30 Jan 2004 12:43 GMT
> Mabye the link http://support.microsoft.com/default.aspx?scid=kb;en-gb;824389 will be
helpful (using "helpful" rather loosely).

I've tried this fix. Thank you. It didn't help. I've found later what causes
the ICE:
A simple example:

#include <map>
using namespace std;

template <class T> class AsMap : public map< unsigned long, T>
{
public:
AsMap(void);
~AsMap(void);
int SaveMap(void);
};
template <class T>
AsMap<T>::AsMap(void)
{}
template <class T>
AsMap<T>::~AsMap(void)
{}

template <class T>
AsMap<T>::SaveMap(void) /*forget int in front and an ICE rise: int
AsMap<T>::SaveMap(void)*/
{
printf("I'm wrong!");
}

int _tmain(int argc, _TCHAR* argv[])
{
AsMap<int> aMap;
return 0;
}

This code compiled well in previous releases. I've forgot the specifier
"int" but ICE points to a constructor of a class that has nothing to do with
the upper one. It took me some time to find it.

Thanks both of you!
Hendrik Schober - 30 Jan 2004 13:47 GMT
> [...]
> A simple example:
[quoted text clipped - 32 lines]
> "int" but ICE points to a constructor of a class that has nothing to do with
> the upper one. It took me some time to find it.

 Once you have it down to such a small
 repro case, you could try Comeau (at
 www.comeaucomputing.com/tryitout). Its
 error messages usually are very good:

   Comeau C/C++ 4.3.3 (Aug  6 2003 15:13:37) for ONLINE_EVALUATION_BETA1
   Copyright 1988-2003 Comeau Computing.  All rights reserved.
   MODE:strict errors C++

   "ComeauTest.c", line 19: error: omission of explicit type is nonstandard ("int"
             assumed)
     AsMap<T>::SaveMap(void) /*forget int in front and an ICE rise: int
     ^

   "ComeauTest.c", line 23: warning: missing return statement at end of non-void
             function "AsMap<T>::SaveMap"
     }
     ^

   "ComeauTest.c", line 25: error: identifier "_TCHAR" is undefined
     int _tmain(int argc, _TCHAR* argv[])
                          ^

   2 errors detected in the compilation of "ComeauTest.c".

 (However, once one got it down to such a
 small piece of code, one usually has found
 out what's wrong anyway...)

> Thanks both of you!

 Schobi

Signature

SpamTrap@gmx.de is never read
I'm Schobi at suespammers dot org

"Sometimes compilers are so much more reasonable than people."
 Scott Meyers


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.