// PR c++/124389 // { dg-do compile { target c++11 } } template struct Empty {}; template constexpr bool test(T) noexcept { return true; } template struct always_true { static constexpr bool value = true; static_assert(test(Empty{}), "BUG"); }; template struct AAA { template ::value> AAA(U) {} }; template )> void test_function() { auto r = U(AAA(1)); } int main() { return 0; }