]> granicus.if.org Git - clang/commit
Allow virt-specifiers after GNU attributes in member-declarators. GCC doesn't
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 24 Jan 2014 22:34:35 +0000 (22:34 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 24 Jan 2014 22:34:35 +0000 (22:34 +0000)
commit2f9e642a746ce7a8adc6da9ed9a5a56711bee101
tree5643e8a7ba59befd04fa4596aca0bd2c8c58cbaa
parentb4aad1b48dcb1407091cd72645d78b773b315d23
Allow virt-specifiers after GNU attributes in member-declarators. GCC doesn't
allow this, and we should warn on it, but it turns out that people were already
relying on this.

We should introduce a -Wgcc-compat warning for this if the attributes are known
to GCC, but we don't currently track enough information about attributes to do
so reliably.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200045 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/DeclSpec.h
include/clang/Sema/Ownership.h
lib/Parse/ParseDeclCXX.cpp
test/Parser/cxx0x-decl.cpp