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)
commit87ff66ccc7501bdbf00328b1d31ca40e3ac7c956
tree5f0ccfdb07dc0954d97e9e76746370364fc9d228
parent92cdfc7cb8cb095c3b80ce35e38c1d9b58c0b6c4
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.

llvm-svn: 224193
clang/include/clang/Basic/DiagnosticParseKinds.td
clang/lib/Parse/ParseDeclCXX.cpp
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/Parser/MicrosoftExtensions.cpp