]> granicus.if.org Git - clang/commit
Downgrade C++11 narrowing conversion errors to warnings default-mapped
authorDouglas Gregor <dgregor@apple.com>
Mon, 23 Jan 2012 15:29:33 +0000 (15:29 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 23 Jan 2012 15:29:33 +0000 (15:29 +0000)
commitf3c82c5f5c0321babf054983c29ad84cc90244f7
tree94fc6115180bb4b15e331e3a08e429a500c910f9
parent1db772bd68502e0dabbd8efeb7f7c64a4ab2e37a
Downgrade C++11 narrowing conversion errors to warnings default-mapped
to an error, so that users can turn them off if necessary. Note that
this does *not* change the behavior of in a SFINAE context, where we
still flag an error even if the warning is disabled. This matches
GCC's behavior.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148701 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaInit.cpp
test/CXX/dcl.decl/dcl.init/dcl.init.list/p7-0x.cpp
test/CXX/dcl.decl/dcl.init/dcl.init.list/p7-cxx11-nowarn.cpp [new file with mode: 0644]