Debian Codegraph @

gcc/testsuite/g++.dg/template/conv16.C

raw
1 // PR c++/95508
2 // { dg-do compile }
3
4 template <typename>
5 struct A;
6 template <typename>
7 struct B {
8 operator int () { return 0; }
9 };
10 template <>
11 struct A<unsigned> : B<int> {};
12 struct D {
13 template <typename>
14 int foo () { return e[f]; }
15 int e[6];
16 A<unsigned> f;
17 };