]> granicus.if.org Git - clang/commit
Complain when we try to initialize an object of Objective-C class type
authorDouglas Gregor <dgregor@apple.com>
Mon, 3 May 2010 18:24:37 +0000 (18:24 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 3 May 2010 18:24:37 +0000 (18:24 +0000)
commit4d9e7388ccdfdab97f92caac5db9b87a530742f4
treee58f08f3a73124413e4880ca009511a09b4ba7f0
parent8fc6d236b8d05bad4b41a9be689b26d931adedd5
Complain when we try to initialize an object of Objective-C class type
(which is ill-formed) with an initializer list. Also, change the
fallback from an assertion to a generic error message, which is far
friendlier. Fixes <rdar://problem/7730948>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102930 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaInit.cpp
test/SemaObjC/compound-init.m [new file with mode: 0644]