Re: Xcode 2.4.1 problem
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:
Whether anonymous enums are legal template parameters has been under discussion in the C++ standards community:
and the current implementation of gcc 4.0 is following this option presented by the working group:
- 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