| 1 |
// { dg-do assemble } |
| 2 |
template <unsigned X, class T> struct Foo { |
| 3 |
friend void operator<<(int, Foo const &) {} |
| 4 |
}; |
| 5 |
template <unsigned X> class Bar : public Foo<X,int> {}; |
| 6 |
inline Bar<0> bar(int,int,int) { return Bar<3>(); } // { dg-error "" } no conversion |
| 7 |
|