aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/cast2.C
blob: 0ce55f035581bdb5bfe37c15eea0e9f3926ef1fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/56238

class A
{
  template < typename T > T& get ();
  template < typename T > class B
  {
    void RemovePoint (A& value)
    {
      static_cast < double >(value.get < T > ());
    }
  };
};