[Bug objc++/41716] New: Core dump when using "for( var in array )" inside template in Objective-C++
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 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
[Bug objc++/41716] Core dump when using "for( var in array )" inside template in Objective-C++
--- Comment #2 from gcc at johnholdsworth dot com 2009-10-15 17:13 --- Created an attachment (id=18800) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18800&action=view) An example iPhone SDK project which gives core dump on compile. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41716
[Bug objc++/41716] Core dump when using "for( var in array )" inside template in Objective-C++
--- Comment #3 from gcc at johnholdsworth dot com 2009-10-15 17:17 --- OK, Already done. Thanks (In reply to comment #1) > The FSF GCC does not include any objective-c 2.0 support. Please report this > bug to Apple. > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41716