This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug objc++/21525] New: objc++ cannot handle methods with null terminated array of values


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]