| 1 |
// PR c++/119303 |
| 2 |
|
| 3 |
template <class> struct c { |
| 4 |
enum { d = 4 }; |
| 5 |
}; |
| 6 |
template <bool> struct e { |
| 7 |
typedef void g; |
| 8 |
}; |
| 9 |
template <class _Tp> |
| 10 |
inline typename e<!c<_Tp>::d>::g bar(_Tp); // { dg-warning "used but never defined" } |
| 11 |
|
| 12 |
int x; |
| 13 |
|
| 14 |
void foo() { bar(x); } |