]> granicus.if.org Git - clang/commit
Simplify and correct the check for function redefinitions. This does two things:
authorDouglas Gregor <dgregor@apple.com>
Wed, 29 Oct 2008 15:10:40 +0000 (15:10 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 29 Oct 2008 15:10:40 +0000 (15:10 +0000)
commit6fc17ff5bf73c4d190517ebc5773f2ae557598ab
treecb1e0fe7f4194b4512ed8590167369fd1ef95e36
parentf70bdb9463a6e3ea2c6307b2c7a5f3e2c6b7e489
Simplify and correct the check for function redefinitions. This does two things:

  - Allows definitions of overloaded functions :)
  - Eliminates extraneous error messages when we have a definition of a
    function that isn't an overload but doesn't have exactly the same type
    as the original.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58382 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/SemaCXX/fntype-decl.cpp
test/SemaCXX/overload-call.cpp