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: Bug in the objective-c++ compiler?




On Jun 15, 2005, at 4:27 PM, Marc Parizeau wrote:


On 15-Jun-05, at 17:13, Scott Thompson wrote:
Not that you should have to write the code this way, but try this:

namespace Toto {
    typedef enum tagProtocol { eOther } Protocol;

    Protocol getProtocol(void) {return eOther;}
}


Ok, thanks for the suggestion, I may use it to bypass this bug without changing the interface of my lib! So in essence the bug is not about a predefined "Protocol" struct. It seems somehow related to the use of the name "Protocol" as an enum name?


Thanks again!

I don't know that the word Protocol had anything to do with it. I could reproduce the bug with the name Protocol1, Protoco1, and other names. There's certainly something odd going on here... probably a bug of some kind.


Scott

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Bug in the objective-c++ compiler? (From: Marc Parizeau <email@hidden>)
 >Re: Bug in the objective-c++ compiler? (From: Scott Thompson <email@hidden>)
 >Re: Bug in the objective-c++ compiler? (From: Marc Parizeau <email@hidden>)
 >Re: Bug in the objective-c++ compiler? (From: Scott Thompson <email@hidden>)
 >Re: Bug in the objective-c++ compiler? (From: Marc Parizeau <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.