diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/crash42.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/crash42.C | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash42.C b/gcc/testsuite/g++.old-deja/g++.pt/crash42.C new file mode 100644 index 000000000..65365857d --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/crash42.C @@ -0,0 +1,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 +} |