• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Function's default values are corrupted (Nasty bug)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Function's default values are corrupted (Nasty bug)


  • Subject: Re: Function's default values are corrupted (Nasty bug)
  • From: Andrew Pinski <email@hidden>
  • Date: Fri, 1 Apr 2005 16:34:04 -0500


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


  • Follow-Ups:
    • RE: Function's default values are corrupted (Nasty bug)
      • From: "Bill Lowrey" <email@hidden>
    • Re: Function's default values are corrupted (Nasty bug)
      • From: Dave Thorup <email@hidden>
References: 
 >Re: Function's default values are corrupted (Nasty bug) (From: Dave Thorup <email@hidden>)
 >Re: Function's default values are corrupted (Nasty bug) (From: Dave Thorup <email@hidden>)
 >Re: Function's default values are corrupted (Nasty bug) (From: Dave Thorup <email@hidden>)

  • Prev by Date: Re: Function's default values are corrupted (Nasty bug)
  • Next by Date: Re: Function's default values are corrupted (Nasty bug)
  • Previous by thread: Re: Function's default values are corrupted (Nasty bug)
  • Next by thread: Re: Function's default values are corrupted (Nasty bug)
  • Index(es):
    • Date
    • Thread