]> granicus.if.org Git - clang/commit
PR20625: Instantiate static constexpr member function of a local struct in a function...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 29 Apr 2015 00:07:09 +0000 (00:07 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 29 Apr 2015 00:07:09 +0000 (00:07 +0000)
commitbf99a507c66e756ab713b1eaffbfcd7224e375da
tree45b806039e70a2f906f65cb57b2105bc8f5f9ad7
parent535c8ba7a164bc5a2021846787fb01e4abfb3561
PR20625: Instantiate static constexpr member function of a local struct in a function template earlier.

This is necessary in order to allow the use of a constexpr member function, or
a member function with deduced return type, of a local class within a
surrounding instantiated function template specialization.

Patch by Michael Park!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236063 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/SemaTemplate/instantiate-local-class.cpp