• 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: Dave Thorup <email@hidden>
  • Date: Fri, 1 Apr 2005 16:49:49 -0500

On Apr 1, 2005, at 4:34 PM, Andrew Pinski wrote:

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

Well, yes this is exactly my point. There is a bug in GCC, you've confirmed that it's still there for GCC 4.1. I've confirmed that it affects 3.3. Although it looks like 4.1 produces a compile error when trying to compile it (which is better than incorrect code), I think it's still a bug.


The same code has been tested and works with both CodeWarrior and Visual Studio. Unless someone can point out exactly why the code shouldn't compile then the problem is still with GCC.
_____________________________


Dave Thorup
Software Engineer
email@hidden

http://www.kuwan.net
Defaults Manager - The premier editor for Mac OS X's User Defaults / Preferences database.


_______________________________________________
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


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>)
 >Re: Function's default values are corrupted (Nasty bug) (From: Andrew Pinski <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