[cfe-commits] r64641 - in /cfe/trunk: include/clang/AST/Decl.h lib/Sema/SemaDecl.cpp test/Sema/function-redecl.c

Douglas Gregor dgregor at apple.com
Mon Feb 16 12:58:12 PST 2009


On Feb 16, 2009, at 12:16 PM, Eli Friedman wrote:

> On Mon, Feb 16, 2009 at 10:20 AM, Douglas Gregor <dgregor at apple.com>  
> wrote:
>> Author: dgregor
>> Date: Mon Feb 16 12:20:44 2009
>> New Revision: 64641
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=64641&view=rev
>> Log:
>> When a function with a prototype is redeclared without a prototype,
>> merge the prototype into the redeclaration (and make a note in the
>> declaration). Fixes PR3588.
>
> The following now crashes clang -emit-llvm:
> int a(int);
> int a() {return 1;}


Thanks, Eli. Fixed now.

	- Doug



More information about the cfe-commits mailing list