blob: 68443a0fe6dbfa2d48b0ac3b83d21c0c9ae0fc07 [file] [log] [blame]
// { dg-do assemble }
class OBJECT
{
int a;
};
template <class T> class TESTA
{
public:
TESTA();
T foo(int i) {T t = 0; return t}; // { dg-error "" } no semi
};
void foo()
{
TESTA<OBJECT *> *foo;
foo = new TESTA<OBJECT *>;
}