]> granicus.if.org Git - clang/commit
PR33222: Require the declared return type not the actual return type to
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 10 Sep 2018 06:35:32 +0000 (06:35 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 10 Sep 2018 06:35:32 +0000 (06:35 +0000)
commit26751adfec129c4120f49efe81d988fede40bfbf
tree6e29519850a81bae1e3bcba876db6c1b6f3a861d
parent3b7400d6f495be0d67367c83922737d75a2140e6
PR33222: Require the declared return type not the actual return type to
match when checking for redeclaration of a function template.

This properly handles differences in deduced return types, particularly
when performing redeclaration checks for a friend function template.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@341778 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
lib/Sema/SemaDecl.cpp
lib/Sema/SemaOverload.cpp
lib/Sema/SemaTemplate.cpp
test/SemaCXX/cxx1y-deduced-return-type.cpp