I'm not sure if this is a bug related only to Apple's version of gcc but I've been getting a core dump whenever I try to use the for ( var in array ) Objective-C construct inside a C++ template. An example is the code:
template <typename ETYPE> class OODictionary { void boom() { NSArray *keys = nil; for ( NSString *key in keys ) { } } }; This core dumps the apple "gcc-5646" compiler in Xcode 3.1.2. Thanks John Holdsworth -- Summary: Core dump when using "for( var in array )" inside template in Objective-C++ Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: objc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gcc at johnholdsworth dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41716