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

Eli Friedman eli.friedman at gmail.com
Mon Feb 16 12:16:44 PST 2009


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;}

-Eli



More information about the cfe-commits mailing list