https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84151
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Fri Feb 16 21:34:57 2018 New Revision: 257768 URL: https://gcc.gnu.org/viewcvs?rev=257768&root=gcc&view=rev Log: 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. Added: branches/gcc-6-branch/gcc/testsuite/g++.dg/tree-ssa/volatile1.C Modified: branches/gcc-6-branch/gcc/cp/ChangeLog branches/gcc-6-branch/gcc/cp/call.c