]> granicus.if.org Git - clang/commit
The diagnostic err_init_conversion_failed uses the enum
authorRichard Trieu <rtrieu@google.com>
Sat, 31 Aug 2013 03:50:47 +0000 (03:50 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 31 Aug 2013 03:50:47 +0000 (03:50 +0000)
commit9a96de74d82abf520a8d65c38fb216e8a40c7bb2
tree5e9cfa4b347e5591f2e56573787a5fa39282b328
parente720311db86d0060c24be9465b667a781a70dc2e
The diagnostic err_init_conversion_failed uses the enum
InitializedEntity::EntityKind as an index for one of its %select.  Over time,
EntityKind has been expanded, but the diagnostic text has not been updated.
This adds additional text to the %select to cover the new enum values.  A
comment has been added to the end of the enum regarding this situation.  This
fixes the crasher in PR17043.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189716 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Initialization.h
test/SemaCXX/err_init_conversion_failed.cpp [new file with mode: 0644]