summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/crash21.C
blob: 05654b5c55a964239b6fef8b7357813e98dfb764 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// { dg-do assemble  }
// { dg-options "" }

class Pooled
{
};

class RefCounted
{
};

class BrickExpressionBase : public RefCounted, public Pooled
{
};

template<unsigned Dim, class LHS, class RHS, class OP>
class BrickExpression : public BrickExpressionBase
{
};

template <unsigned Dim, class T>
void f()
{
  typedef BrickExpression<Dim, T, T, T> ExprT;
  ExprT(3).apply;
}