]> granicus.if.org Git - clang/commit
PR16875: The return type of a dependent function type is visible when it's
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 14 Aug 2013 20:16:31 +0000 (20:16 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 14 Aug 2013 20:16:31 +0000 (20:16 +0000)
commit37e849ad80731ac1b2ad1c64e73bced27802bd8b
tree8f4e7c2bc1f9f36fa0c35c8b8b2942837e436155
parent933c66b6956e91ef9017b28dd499b317aba83b7b
PR16875: The return type of a dependent function type is visible when it's
referenced as a member of the current instantiation. In that case, deduce the
type of the function to a dependent type rather than exposing an undeduced auto
type to the rest of the current instantiation.

The standard doesn't really say that the type is dependent in this case; I'll
bring this up with CWG.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188410 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
lib/Sema/SemaStmt.cpp
lib/Sema/SemaTemplateDeduction.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/SemaCXX/cxx1y-deduced-return-type.cpp