]> granicus.if.org Git - clang/commit
Sema: Don't allow CVR qualifiers before structors
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 8 Jul 2014 18:18:04 +0000 (18:18 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 8 Jul 2014 18:18:04 +0000 (18:18 +0000)
commit914aefe65981e817d170141c71349bdfaf00202d
tree952c7029b6ca37b9e104ec074b550c700cc22dbf
parent0d54d89118a9afa3d6b64b0098a16ebe4a916215
Sema: Don't allow CVR qualifiers before structors

We would silently accept volatile ~S() when the user probably intended
to write virtual ~S().

This fixes PR20238.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212555 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaType.cpp
test/SemaCXX/constructor.cpp
test/SemaCXX/destructor.cpp