summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/crash42.C
blob: 65365857d07ec07aba6cd683ee24f3e757ec45c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// Origin: Walter Brisken <walterfb@puppsr14.princeton.edu>

template <class T> class list {};

class newtype
{
};

void crash()
{
  newtype* n;
  n->list.size (); // { dg-error "" } invalid use of template
}