Calling methods such as the following from within a .mm file always results in
"error: too many arguments to function"
@interface Foo : Object
+ newWith:(int)firstObject, ...;
@end
void Bar()
{
id doh = [Foo newWith:1,2,3,4,NULL];
}
--
Summary: objc++ cannot handle methods with null terminated array
of values
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: objc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ajgenius at unit-e dot cc
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21525