// PR c++/94038 // { dg-do compile { target c++11 } } // { dg-additional-options "-O -Wall" } static constexpr int x = 0; template constexpr const int& foo() { static_assert(T(1) == 0, ""); return x; } template constexpr const int& bar() { return foo(); } constexpr int baz(int a) { return a; } static_assert(decltype(baz(bar())){} == 0, "");