]> granicus.if.org Git - clang/commit
Reject the allocation of variably-modified types in C++ 'new'
authorDouglas Gregor <dgregor@apple.com>
Wed, 6 Oct 2010 16:00:31 +0000 (16:00 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 6 Oct 2010 16:00:31 +0000 (16:00 +0000)
commita0750768718bb5d05150641b5bba74847a21bc09
treed6bdfa383075f672a38b04fd1a4add0f4e8f3214
parentd2829b76a87a70791184b3cac89900d2cda46ce4
Reject the allocation of variably-modified types in C++ 'new'
expressions. Fixes PR8209 in the narrowest way possible. I'm still
considering whether I want to implement the extension that permits the
use of VLA types in a 'new' expression.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115790 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExprCXX.cpp
test/SemaCXX/c99-variable-length-array.cpp