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

            Bug ID: 16359
           Summary: Missing error (waning in c++98) for non trivial object
                    as argument to variadic function
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified

Matt Beaumont-Gay found this:


struct Foo {
  Foo() {}
  Foo(const Foo&) {}
};
void f(...);
void g() {
  Foo foo;
  void (*fun)(...) = f;
  fun(foo);
  f(foo);
}

In c++98 we warn only on the direct function call and in c++11 we error only on
it too. Gcc 4.7 produces errors/warnings for both.

-- 
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