A member expression's base doesn't always have an impact on what the
member decl would evaluate to. In such a case, the base is used as a
poor man's scope qualifier.
This fixes PR26738.
Paths
| Differential D17619
[MSVC Compat] Don't evaluate member base expressions w/o side effects ClosedPublic Authored by majnemer on Feb 25 2016, 11:20 AM. Tokens "Like" token, awarded by andreybokhanko.
Details Summary A member expression's base doesn't always have an impact on what the This fixes PR26738.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Feb 25 2016, 4:40 PM Closed by commit rL261975: [MSVC Compat] Don't evaluate member base expressions w/o side effects (authored by majnemer). · Explain WhyFeb 25 2016, 8:27 PM This revision was automatically updated to reflect the committed changes. Comment Actions @majnemer, this error in the header is now gone. Thank you! On to more errors! ;-) Yours,
Revision Contents
Diff 49109 lib/AST/ExprConstant.cpp
test/SemaCXX/ms-const-member-expr.cpp
|