| 1 |
// { dg-do assemble } |
| 2 |
// { dg-prune-output "note" } |
| 3 |
|
| 4 |
// Adapted from testcase by Corey Kosak <[email protected]> |
| 5 |
|
| 6 |
template<class T> |
| 7 |
struct moo_t { |
| 8 |
struct cow_t {}; |
| 9 |
}; |
| 10 |
|
| 11 |
template<class T> void foo(typename moo_t<T>::cow_t) {} |
| 12 |
|
| 13 |
template<class T> void foo(moo_t<T>) { |
| 14 |
typename moo_t<T>::cow_t p; |
| 15 |
foo(p); // { dg-bogus "" "" { xfail *-*-* } } - no matching function for call - |
| 16 |
} |
| 17 |
|
| 18 |
int main() { |
| 19 |
moo_t<int> x; |
| 20 |
foo(x); // { dg-bogus "" "" { xfail *-*-* } } - required from here - |
| 21 |
} |