ipa-cp: Perform operations in the appropriate types (PR 118097)
[gcc.git] / gcc / testsuite / g++.dg / template / parm-cv2.C
blobcd40e8680179f4074da948e7a5ce8d01e69e4816
1 // PR c++/51851
3 template<class T>
4 struct A
6   typedef double Point[2];
7   virtual double calculate(const Point point) const = 0;
8 };
10 template<class T>
11 struct B : public A<T>
13   virtual double calculate(const typename A<T>::Point point) const
14   {
15     return point[0];
16   }
19 int main()
21   B<int> b;
22   return 0;