]> granicus.if.org Git - clang/commit
Implement GNU C semantics for K&R function definitions that follow a
authorDouglas Gregor <dgregor@apple.com>
Fri, 6 Mar 2009 22:43:54 +0000 (22:43 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 6 Mar 2009 22:43:54 +0000 (22:43 +0000)
commitc837656ca6d2a5b434923d7e2fd11d3a3c3bfa74
treefde0bb26b4b4a33b4f9e0b3e0576f481de1dd5d1
parent6fc0bdfc3227da0c9a019a5ae282b2ed5dc82254
Implement GNU C semantics for K&R function definitions that follow a
prototype of the same function, where the promoted parameter types in
the K&R definition are not compatible with the types in the
prototype. Fixes PR2821.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66301 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.def
lib/Sema/SemaDecl.cpp
test/Sema/function-redecl.c
test/Sema/knr-def-call.c