https://llvm.org/bugs/show_bug.cgi?id=23029

            Bug ID: 23029
           Summary: Diagnostic issued for function parameter pack
                    following a default argument
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

Ubuntu clang version 3.7.0-svn229234-1~exp1 and in earlier versions.

Clang issues a diagnostic (missing default argument on parameter) for the
following (well formed) code: http://goo.gl/aIoi1f

template <typename... Ts>
void f(int = 0, Ts...) {}

int main() {
  f(42);
}

8.3.6/4: In a given function declaration, each parameter subsequent to a
parameter with a default argument shall have a default argument supplied in
this or a previous declaration or shall be a function parameter pack.

>From http://stackoverflow.com/q/29098835/1639256

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to