template class Foo{}; typedef Foo IntFoo; // this type is never instantiated which results in a // CXXRecordDecl without a definition typedef Foo DoubleFoo; int main() { DoubleFoo df; }