Crash when function defined twice

Hello,

a bug found by incident:
`clang -fsyntax-only' crashes on the following (obviously illegal) code:

int foo(int a)
{
  return 0;
}

int foo(int a)
{
  return 0;
}

When the parameter list of one of the functions is changed clang
points out the error.

Regards,
Rob

Rob,

This was fixed yesterday (r45975)...

Thanks for the bug report,

snaroff

Strange, I seem to have r46000.

llvm.svn/tools/clang$ git-svn log --limit=1

It seems to work for me:

t.c:6:5: error: redefinition of 'foo'
int foo(int a)
     ^
t.c:1:5: error: previous definition is here
int foo(int a)
     ^
2 diagnostics generated.

-Chris

Can you make sure you have a clean build?

If the bug persists, please let me know,

snaroff