Parameter count mismatch

Hi!

I'm new to clang and llvm. When I try to compile the following code with the
current SVN version of clang (Rev. 44398), the compiler crashes:

typedef void a;
void cs(a) {
}

clang: Decl.cpp:250: void clang::FunctionDecl::setParams(clang::ParmVarDecl**, unsigned int): Assertion `NumParams == getNumParams() && "Parameter count mismatch!"' failed.
clang((anonymous namespace)::PrintStackTrace()+0x22)[0x841b198]
clang((anonymous namespace)::SignalHandler(int)+0x102)[0x841b440]
[0xffffe420]
/lib/libc.so.6(abort+0x101)[0xb7cd30f1]
/lib/libc.so.6(__assert_fail+0xf0)[0xb7ccab50]
clang(clang::FunctionDecl::setParams(clang::ParmVarDecl**, unsigned int)+0x6a)[0x82eba40]
clang(clang::Sema::ActOnStartOfFunctionDef(clang::Scope*, clang::Declarator&)+0x304)[0x82b0172]
clang(clang::Parser::ParseFunctionDefinition(clang::Declarator&)+0x16a)[0x830c642]
clang(clang::Parser::ParseDeclarationOrFunctionDefinition()+0x2d9)[0x830c38f]
clang(clang::Parser::ParseExternalDeclaration()+0x206)[0x830c0ae]
clang(clang::Parser::ParseTopLevelDecl(void*&)+0x3d)[0x830be1f]
clang((anonymous namespace)::ASTStreamer::ReadTopLevelDecl()+0x5c)[0x82a8efe]
clang(clang::ParseAST(clang::Preprocessor&, unsigned int, clang::ASTConsumer*, bool)+0xdf)[0x82a90c1]
clang[0x8268dae]
clang(main+0x40b)[0x8269255]
/lib/libc.so.6(__libc_start_main+0xe0)[0xb7cbd050]
clang[0x8244d71]
Aborted

Kind regards,
Michael Zolda

Hi!

I'm new to clang and llvm. When I try to compile the following code with the
current SVN version of clang (Rev. 44398), the compiler crashes:

Fixed, thanks!
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20071126/003015.html

-Chris