• 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
unions named the same cause compiler error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

unions named the same cause compiler error


  • Subject: unions named the same cause compiler error
  • From: August Hahn <email@hidden>
  • Date: Tue, 22 Dec 2009 10:17:25 -0800

I have code like this:

@interface ClassA : NSObject
{
	union _some_union {
		int x;
		float y;
	} u;
}
@end

@interface ClassB : NSObject
{
	union _some_union {
		int x;
		float y;
	} u;
}
@end

when I compile, I get an error saying the second _some_union is a redefinition. Shouldn't the two be distinct, since they're in different classes?
 _______________________________________________
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: unions named the same cause compiler error
      • From: Clark Cox <email@hidden>
    • Re: unions named the same cause compiler error
      • From: Kai BrĂ¼ning <email@hidden>
  • Prev by Date: Re: LLVM 2.6 Released / Can it be used with Xcode?
  • Next by Date: Warning in error
  • Previous by thread: Re: LLVM 2.6 Released / Can it be used with Xcode?
  • Next by thread: Re: unions named the same cause compiler error
  • Index(es):
    • Date
    • Thread