summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/conversion/base1.C
blob: e236504ae87164990b72db833d0c3ab6ecdba6a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/48749

struct Tuple3
{
  float x;
};

struct Pos: virtual Tuple3 { };

struct TexCoords
{
  Pos pos;
};

template <class T>
void eval (const TexCoords &coords)
{
  const Pos &pos = coords.pos;
  pos.x;
}