]> granicus.if.org Git - clang/commit
Give the "cannot pass object of non-POD type 'class C' through variadic constructor...
authorChris Lattner <sabre@nondot.org>
Fri, 11 Dec 2009 01:52:50 +0000 (01:52 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 11 Dec 2009 01:52:50 +0000 (01:52 +0000)
commit7e1848ddba7b2a5f73a17387de7078bf8de7a646
tree2f6d203adc90fc910ae8449fa6e9ac4b5ce1c576
parented0716b7b79d8cdef34f3bd35776a91aa3c943e5
Give the "cannot pass object of non-POD type 'class C' through variadic constructor; call will abort at runtime" warning a -W flag (non-pod-varargs) and default it being an error by default.  There is no good reason to allow users to get bitten by this sort of thing by default.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91094 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
test/SemaCXX/overload-call-copycon.cpp
test/SemaCXX/vararg-non-pod.cpp
test/SemaObjCXX/vararg-non-pod.mm