https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84151

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Feb 16 21:06:56 2018
New Revision: 257767

URL: https://gcc.gnu.org/viewcvs?rev=257767&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-7-branch/gcc/testsuite/g++.dg/tree-ssa/volatile1.C
Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/call.c

Reply via email to