[cfe-dev] Crash when function defined twice

Chris Lattner clattner at apple.com
Tue Jan 15 08:29:41 PST 2008


On Jan 15, 2008, at 8:15 AM, Robert Staudinger wrote:

> On Jan 15, 2008 3:17 PM, Steve Naroff <snaroff at apple.com> wrote:
>> Rob,
>>
>> This was fixed yesterday (r45975)...
>
> Strange, I seem to have r46000.
>
> llvm.svn/tools/clang$ git-svn log --limit=1
> ------------------------------------------------------------------------
> r46000 | lattner | 2008-01-15 06:22:14 +0100 (Tue, 15 Jan 2008) | 2  
> lines
>
> avoid pasting L + "foo" into L"foo".


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



More information about the cfe-dev mailing list