Advertisement

Wow! i really DID break vc++

Started by December 19, 2000 02:31 PM
1 comment, last by Succinct 24 years ago
now, i'm not reporting a bug or anything, like some people like to do, like, "my program won't compile, so i must've found a bug in msvc++" kinda crap. check out this whopper of an error message I got:

D:\temp\Code\GLEngine\GLEngine.cpp(455) : fatal error C1001: INTERNAL COMPILER ERROR
        (compiler file 'msc1.cpp', line 1786) 
         Please choose the Technical Support command on the Visual C++ 
         Help menu, or open the Technical Support help file for more information
Command line warning D4028 : minimal rebuild failure, reverting to normal build
Error executing cl.exe.
  
woo hoo! kewl stuff. it's funny. i tried locating the offending line, so i commented out everything, and started some trial and error. I eventually found out that it was the constructor. it's a void constructor that initializes data through that whole :mData1( Data1 ),mData2( mData2 ) kinda syntax. i replaced it w/ just a void constructor w/ empty brackets and it worked. wow here it is if ya care:
    
template<class K,class T> class xTreeNode
{
	K Key;
	T Data;

	typedef xTreeNode<T,K> Node;
	typedef Node* pNode;

	pNode pParent;
	int nChildren;
	pNode *ppChild;

//	xTreeNode( void ) {}

	xTreeNode( void ): pParent( 0 ),nChildren( 0 ),ppChild( 0 );	
};
    
lol, i just realized what it was after i pasted it here... !!! there's no empty {} at the end of the initialization constructor (which i've now fixed and feel stupid about). sorry, that part was wider than my screen width w/ the workspace window there, i'd just assumed i'd had it... i dunno, i just think it's a pretty scary error to print when you just messed up some syntax... i'd rather it say "expecting "{" before "}" " or somesuch -thank you for ur bandwidth ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I have no name that you may call me. I am merely Succinct. ~Succinct Demos Online~ "Hey, where'd that display list rotate off to now?" -(Drop me a line here)- Edited by - Succinct on 12/19/00 2:36:13 PM
-- Succinct(Don't listen to me)
You''ll get alot of "internal compiler errors" when working with templates.

SP4 helps a little...

it''s usually something wrong with your code (or my code as case often is), but vc does a bad job telling you that.
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
Advertisement
heh, ya, i eventually found that out when i read the help file for it... problem was that my comp didn''t have the file installed, and i had to see it on a different comp (mines been broke, so i''ve been using the ones in my old college''s lab)

stupid templates...

thx for re''ing, mag, it''s nice to see the big names ''round here taking interest in lil'' ol'' me

-frank

-- Succinct(Don't listen to me)

This topic is closed to new replies.

Advertisement