blob: a34a6af73e9743af51703a404d66614fa310cd82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// PR c++/81671
// { dg-do compile { target c++11 } }
namespace std { typedef decltype(nullptr) nullptr_t; }
template<class R, class CB> struct Bar
{};
template<class R> struct Bar<R, std::nullptr_t>
{
template<std::nullptr_t> struct Bind { constexpr static int const cb = 0; };
};
int foo()
{
return Bar<int, decltype(nullptr)>::Bind<nullptr>::cb;
}
|