Emit an error when trying to form a pointer-to-member to a bitfield.
commitec9110c7e57830708717b81a84f807301b377367
authorArgiris Kirtzidis <akyrtzi@gmail.com>
Sat, 30 Oct 2010 19:52:22 +0000 (30 19:52 +0000)
committerArgiris Kirtzidis <akyrtzi@gmail.com>
Sat, 30 Oct 2010 19:52:22 +0000 (30 19:52 +0000)
tree36df004ace7a668533812516eb40dfd92e043db2
parentc1730bbd40e46bcafaa3b32e2faa21adb13889ba
Emit an error when trying to form a pointer-to-member to a bitfield.

As a bonus, avoids a crash on the IRGen side due to accepting invalid code.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117842 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Expr.cpp
test/SemaCXX/ptrtomember.cpp