Files
gcc-reflection/gcc/testsuite/g++.dg/cpp1z/lambda-__func__.C
Marek Polacek be515b4ce0 *.C: Use target c++17 instead of explicit dg-options.
* g++.dg/*.C: Use target c++17 instead of explicit dg-options.
	* lib/g++-dg.exp: Don't test C++11 by default.  Add C++17 to
	the list of default stds to test.

From-SVN: r265343
2018-10-20 17:21:19 +00:00

14 lines
241 B
C

// PR c++/84925
// { dg-do compile { target c++17 } }
template <typename>
struct A {
static const int value = 0;
static auto constexpr fn = [] { return __func__; };
};
template <typename type>
int x = A<type>::value;
auto s = x<int>;