// { dg-options -std=c++0x } template class my_limits { public: static constexpr T min() throw() { return T(); } static constexpr T max() noexcept { return T(); } }; constexpr double var_min = my_limits::min(); // #1 OK constexpr double var_max = my_limits::max(); // #2 Error