RE: Function's default values are corrupted (Nasty bug)
RE: Function's default values are corrupted (Nasty bug)
- Subject: RE: Function's default values are corrupted (Nasty bug)
- From: "Bill Lowrey" <email@hidden>
- Date: Fri, 1 Apr 2005 15:54:34 -0600
- Organization: istation
It compiles and works fine with Visual Studio.NET 2003. That is, the nested
class is parsed as expected, and the default parameters are correct.
What reason could there be for not parsing the nested class?
Regards,
Bill Lowrey
Istation
email@hidden
-----Original Message-----
From: xcode-users-bounces+billl=email@hidden
[mailto:xcode-users-bounces+billl=email@hidden] On Behalf Of
Andrew Pinski
Sent: Friday, April 01, 2005 3:34 PM
To: Dave Thorup
Cc: XCode Users
Subject: Re: Function's default values are corrupted (Nasty bug)
On Apr 1, 2005, at 4:08 PM, Dave Thorup wrote:
> On Apr 1, 2005, at 12:35 PM, Dave Thorup wrote:
>
>> I've tracked the problem down. It seems that the Template Class that
>> defines SetSize is also an internal class that's defined inside of
>> another class. I hadn't noticed this before since it's all defined
>> in a rather large header file and I wasn't the one who wrote it.
>>
>> Anyway, here's a simple test case that you're free to try out. I'll
>> have a pre-built project posted to my website soon and then I'll
>> write up a bug report, but just incase anyone else wants to try this
>> out right away here it is. All you need to do is create an instance
>> of CJunkOverlord and that will call SetSize in its constructor.
>
> I'v filed a bug report (#4076562) and uploaded a the test case to my
> website (http://www.kuwan.net/developer/) where it's named GCC
> Template Bug. If you want to skip straight to the download then you
> can get it here:
>
> http://www.kuwan.net/servlets/Download/GccTemplateBug.zip
The code is invalid, with the mainline GCC (4.1.0), I get the following
errors:
Guts.h: In constructor 'CJunkOverlord::CJunkOverlord()':
Guts.h:67: error: the default argument for parameter 3 of 'void
CJunkOverlord::TJunkInternal<T>::SetSize(long unsigned int, long
unsigned int, long int, long int, long int, long int) [with T = short
unsigned int]' has not yet been parsed
Guts.h:67: error: the default argument for parameter 4 of 'void
CJunkOverlord::TJunkInternal<T>::SetSize(long unsigned int, long
unsigned int, long int, long int, long int, long int) [with T = short
unsigned int]' has not yet been parsed
Guts.h:67: error: the default argument for parameter 5 of 'void
CJunkOverlord::TJunkInternal<T>::SetSize(long unsigned int, long
unsigned int, long int, long int, long int, long int) [with T = short
unsigned int]' has not yet been parsed
Thanks,
Andrew Pinski
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden