• 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: Xcode 2.4.1 problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 2.4.1 problem


  • Subject: Re: Xcode 2.4.1 problem
  • From: Chris Espinosa <email@hidden>
  • Date: Tue, 12 Dec 2006 12:58:09 -0800


On Dec 11, 2006, at 4:54 AM, Marcin Zalewski wrote:

Hello,

I have been able to compile my application with the default version of Xcode shipped on my DVD (don't remember the version now). With Xcode 4.2.1 I get error messages such as this one:

/usr/include/c++/4.0.0/bits/cpp_type_traits.h:109: error: 'std::__is_integer<std::string>::<anonymous enum>' is/uses anonymous type

This is just an example, all other places where enum is used give me such error.

Does anyone know why this was ok with gcc 4.0.0 but is not ok with gcc 4.0.1?

I am a bit surprised anyway that nobody stumbled across this problem before... 

A very brief search of Google for "enum is/uses anonymous type" brings up this bug in the official GNU gcc 4.0 database:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20589

Whether anonymous enums are legal template parameters has been under discussion in the C++ standards community:

http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#488

and the current implementation of gcc 4.0 is following this option presented by the working group:

  1. Fail during overload resolution. In order to perform overload resolution for the call to f, the declaration of the required specialization of the S constructor must be instantiated. This instantiation uses a local type and is thus ill-formed (14.3.1  temp.arg.type paragraph 2), rendering the example as a whole ill-formed, as well.
You probably need to change your code while awaiting resolution by the C++ Working Group and adoption of the conclusions in gcc.

Chris


 _______________________________________________
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: 
 >Xcode 2.4.1 problem (From: "Marcin Zalewski" <email@hidden>)

  • Prev by Date: Re: Xcode 2.4.1 problem
  • Next by Date: ___spin_lock
  • Previous by thread: Re: Xcode 2.4.1 problem
  • Next by thread: Include paths in XCode projects
  • Index(es):
    • Date
    • Thread