// RUN: %clang_cc1 -fsyntax-only %s 2>&1| FileCheck %s
// PR7511
// Note that the error count below doesn't matter. We just want to
// make sure that the parser doesn't crash.
// CHECK: 14 errors
template
struct int_;
template
template
struct ac
{
typedef T1 ae
};
templatestruct aaa
{
typedef ac<1,int,int>::ae ae
};
template
struct state_machine
{
typedef aaa::ae aaa;
int start()
{
ant(0);
}
template
struct region_processing_helper
{
template
struct In;
template
struct In,my>;
template
int process(Event)
{
In > a;
}
}
template
int ant(Event)
{
region_processing_helper* helper;
helper->process(0)
}
};
int a()
{
state_machine p;
p.ant(0);
}