PR c++/84151 - unnecessary volatile load with static member.
authorJason Merrill <jason@redhat.com>
Fri, 16 Feb 2018 21:03:02 +0000 (16:03 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 16 Feb 2018 21:03:02 +0000 (16:03 -0500)
commit18afe4c9fcfef7d03832816581fb8804cde0aa4e
tree1da777f19f6dda74450c197d022f78fe8e819c05
parent3664e317b8efce5e4b37aca4724b05945bcbbb4f
PR c++/84151 - unnecessary volatile load with static member.

* call.c (build_new_method_call_1): Avoid loading from a volatile
lvalue used as the object argument for a static member function.

From-SVN: r257763
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/g++.dg/tree-ssa/volatile1.C [new file with mode: 0644]