• 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: Possible XCode C compiler bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible XCode C compiler bug


  • Subject: Re: Possible XCode C compiler bug
  • From: Godfrey DiGiorgi <email@hidden>
  • Date: Mon, 23 Feb 2004 11:14:45 -0800

Ken,

I hadn't seen your follow-on note when I sent my prior response.
If you can send me the original source file that demonstrates the problem, I'll take at look at it with the compiler folks.


Godfrey
---
  Godfrey DiGiorgi - email@hidden
  408 974-6814 tel - 408 974-8101 fax - 408 832-8319 cell
  Technology Manager, Development Tools
  Apple Worldwide Developer Relations

On Feb 22, 2004, at 7:43 PM, Ken Tozier wrote:

I was getting an "incompatible types" error when compiling a source
file and it turned out to be a missing semicolon (my fault). What's odd
though, is that the compiler seemed to have no problem squirreling away
this one unterminated declaration, going on to successfully process
subsequent declarations and then resume looking for a terminating
semicolon when it encountered another numeric type. for example:

// missing semicolon
	OSErr			theErr = noErr

// these compiled fine
	FSSpec			mapFolder = {0},
					mapFileSpec = {0};

	Handle			aliasHandle = NULL;

// something fishy happens here
	long			bufferSize = 120,
					writeSize,
					recCount;

// attempting the following assignment
writeSize = bufferSize;

Yeilds -> error: conflicting types for "writeSize"

Putting the semicolon solves the problem, but this skipping over other
declares and failing in the "long" declaration, is really strange
behavior in my opinion.

Does anyone else think this is a bug?

Ken
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Possible XCode C compiler bug (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: Basic xcode debugging question
  • Next by Date: Re: VS.NET-style code outlining?
  • Previous by thread: Possible XCode C compiler bug
  • Next by thread: CVS Fixes
  • Index(es):
    • Date
    • Thread