summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.oliva/template3.C
blob: 056f77c6127384f735618e230239c2dcb458fff2 (plain)
1
2
3
4
5
6
7
8
9
// { dg-do assemble  }

// Copyright (C) 1999 Free Software Foundation

// by Alexandre Oliva <oliva@dcc.unicamp.br>
// based on bug report by Ulf Larsson <ulf.larsson@mbow337.swipnet.se>

template <class T> class C {};
class foo {} bar = bar.C(); // { dg-error "" } call to template