1 // PR c++/91979 2 // { dg-do compile { target c++11 } } 3 // { dg-final { scan-assembler "_Z3fooILPv0EEvPN9enable_ifIXeqT_LDnEEvE4typeE" } } 4 5 template <bool, typename T = void> 6 struct enable_if {}; 7 8 template <typename T> 9 struct enable_if<true, T> { typedef T type; }; 10 11 template <void *P> 12 void foo(typename enable_if<P == nullptr>::type* = 0) {} 13 14 template void foo<(void *)0>(void *); 15 16