[LLVMbugs] [Bug 9403] New: Parameter pack expansions not accepted in variadic Objective-C methods

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 4 08:43:40 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=9403

           Summary: Parameter pack expansions not accepted in variadic
                    Objective-C methods
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: andersca at mac.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


@interface A
- (void)f:(int)firstObj, ...;
@end

template<typename ...Args> void f(A* a, Args... args) {
  [a f:args...];
}

template void f<int, int>(A*, int, int);


clang -cc1 -fsyntax-only  -std=c++0x t.mm
t.mm:6:12: error: expected ']'
  [a f:args...];
           ^
1 error generated.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list