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)
commit180b92168dd61c0d6c61eaa241c3c21bd892a19b
tree891c4572db2529ba3df275685a6ac0c1b4ec2f98
parent5295793bcaf4cd143021ddf6a2d3cab3d801bfcc
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!

llvm-svn: 236063
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
clang/test/SemaTemplate/instantiate-local-class.cpp