[llvm-bugs] [Bug 31002] clang rejects valid C++ code with variable argument function

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 14 12:12:04 PST 2016


Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Per core issue 506, an implementation is required to either reject such code or
make it work:

[expr.call]/9: "Passing a potentially-evaluated argument of class type (Clause
9) having a non-trivial copy constructor, a non-trivial move constructor, or a
non-trivial destructor, with no corresponding parameter, is
conditionally-supported with implementation-defined semantics."

Clang chooses to reject.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161114/0b2534f6/attachment.html>

More information about the llvm-bugs mailing list