]> granicus.if.org Git - clang/commit
Diagnose the use of abstract types as array element types. Previously,
authorDouglas Gregor <dgregor@apple.com>
Tue, 27 Apr 2010 19:38:14 +0000 (19:38 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 27 Apr 2010 19:38:14 +0000 (19:38 +0000)
commit138bb2366baa3856088bae94f36f2d96b2c995b9
tree9bad3eb24b139e86a1b06c75aeb06c3ea237f979
parentc96be1ea33cdf63d07cec48d18fe8e3afea48f8d
Diagnose the use of abstract types as array element types. Previously,
we were relying on checking for abstract class types when an array
type was actually used to declare a variable, parameter, etc. However,
we need to check when the construct the array for, e.g., SFINAE
purposes (see DR337). Fixes problems with Boost's is_abstract type
trait.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102452 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaType.cpp
test/SemaCXX/abstract.cpp