]> granicus.if.org Git - clang/commit
When the out-of-line definition differs from the declaration in the return type,
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 5 Feb 2011 05:54:49 +0000 (05:54 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 5 Feb 2011 05:54:49 +0000 (05:54 +0000)
commit1de34dd8a6932fbb316e35304bf468ddb4a0841b
tree7ccf98629817435fc78b56fe52ea7e7857aece0b
parent1faa89f9c619e4b2411fab4af7e22ee7a2bd9009
When the out-of-line definition differs from the declaration in the return type,
say "out-of-line definition differ from the declaration in the return type" instead of
the silly "functions that differ only in their return type cannot be overloaded".

Addresses rdar://7980179.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124939 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
test/SemaCXX/nested-name-spec.cpp