]> granicus.if.org Git - clang/commit
Parse: MS property members cannot have an in-class initializer
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 13 Dec 2014 11:34:16 +0000 (11:34 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 13 Dec 2014 11:34:16 +0000 (11:34 +0000)
commit4757126ccbd9aa88faaf680fb3cd04c3eb122779
tree7943227769d3139bb229f29dc158d0a1e1945fcd
parent7fad38e6551160d87715ad126690292ce19ce5ae
Parse: MS property members cannot have an in-class initializer

We would crash trying to treat a property member as a field.  These
shoudl be forbidden anyway, reject programs which contain them.

This fixes PR21840.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224193 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticParseKinds.td
lib/Parse/ParseDeclCXX.cpp
lib/Sema/SemaDeclCXX.cpp
test/Parser/MicrosoftExtensions.cpp