Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / template / overload1.C
blob2225fecf730284e8e81e660ace8671f1897ccb4b
1 // { dg-options "-w" }
2 // PR c++/9420
3 // Bug: We were instantiating B<int> during overload resolution for E<0.
4 // This is wrong; the contents of B<int> are not relevant, since we can't
5 // use its constructors (because we'd already be using a constructor for
6 // C).
8 enum { E };
10 template <typename T> struct A {
11   static const int a = (E < 0);
14 template <typename T> class B {
15   A<int> b;
18 struct C {
19   C(B<int>);
22 int operator<(C, C);
24 A<int> c;