https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70590
--- Comment #7 from Patrick Palka <ppalka at gcc dot gnu.org> --- Reduced : // PR c++/70590 // { dg-options "-O2" } int a; constexpr int * foo () { return &a; } void blah (int *); int bar () { blah (foo ()); } int baz () { blah (foo ()); }