Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cc1plus known crasher?



On Friday, June 27, 2003, at 03:37 PM, Stiphane Sudre wrote:

On samedi, juin 28, 2003, at 12:27 AM, Matt Austern wrote:

On Friday, June 27, 2003, at 02:53 PM, Stiphane Sudre wrote:

On vendredi, juin 27, 2003, at 11:46 PM, Andrew Pinski wrote:

This is not fixed in 3.3 either but I think _T is defined as 1048576
for some reason (some where) so that is why it does not compile but a
simple testcase does not crash.

Indeed changing t_T to something else is working.

I would guess 1048576 is the Bug ID I will get after filing the bug report. Since the new version of the tools compile your code even before you think about compiling it, maybe the compiler knows the bug report ID before filing it :-)

It's a compiler bug (the compiler isn't supposed to crash, no matter what), but it's also a bug in your code. _T, as with all identifiers that begin with an _ and a capital letter, is reserved to the implementation. The implementation is allowed to use it as a macro, an internal symbol in the front end, etc. It shouldn't be part of user code.

Is it stated somewhere in the documentation available with the Dev Tools? There might be some other restrictions I have missed.

It's from the C++ standard. Clause 17.4.3.1.2, paragraph 1: "Each name that contains a double underscore (__) or begins with an underscore followed by an uppercase letter is reserved to the implementation for any use."

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

References: 
 >Re: cc1plus known crasher? (From: Stéphane Sudre <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.