https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70106
Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ppalka at gcc dot gnu.org --- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> --- Hmm, I can't reproduce the error with -std=c++11, only -std=c++14. Reduced test case: struct A { int x; void foo () const { (A::x); }; }; void foo () { A ().foo (); }