https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84151
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Fri Feb 16 21:03:02 2018 New Revision: 257763 URL: https://gcc.gnu.org/viewcvs?rev=257763&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: trunk/gcc/testsuite/g++.dg/tree-ssa/volatile1.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/call.c