1 // PR c++/63757
2 // { dg-do compile { target c++11 } }
3 
4 typedef decltype(nullptr) nullptr_t;
5 
6 void bar(void*) {}
7 
8 struct foo
9 {
10   operator nullptr_t()
11   {
12     return nullptr;
13   }
14 };
15 
16 int main()
17 {
18   bar(foo());
19 }
20