Clang forgot that '++s.m' was a bitfield l-value and permit it's address
to be taken; this would crash at CodeGen-time.
Instead, propagate the object-kind when we see the prefix
increment/decrement.
Paths
| Differential D4733
Sema: Disallow taking the address of a bitfield coming from preincrement ClosedPublic Authored by majnemer on Jul 30 2014, 5:44 PM.
Details Summary Clang forgot that '++s.m' was a bitfield l-value and permit it's address Instead, propagate the object-kind when we see the prefix
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 30 2014, 8:53 PM
Revision Contents
Diff 12057 cfe/trunk/lib/Sema/SemaExpr.cpp
cfe/trunk/test/CXX/drs/dr3xx.cpp
|