]> granicus.if.org Git - clang/commit
PR11851 (and duplicates): Whenever a constexpr function is referenced,
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 7 Nov 2012 01:14:25 +0000 (01:14 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 7 Nov 2012 01:14:25 +0000 (01:14 +0000)
commitce2661f9ccb85de1aacaa7c3ea414a757f5986f6
tree1db7a542b581bc600544d5df6d16bb1dc8fd8244
parent43f4f1e92bb07a04c30c9781be4d0bb5cc30acdd
PR11851 (and duplicates): Whenever a constexpr function is referenced,
instantiate it if it can be instantiated and implicitly define it if it can be
implicitly defined. This matches g++'s approach. Remove some cases from
SemaOverload which were marking functions as referenced when just planning how
overload resolution would proceed; such cases are not actually references.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167514 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
lib/Sema/SemaOverload.cpp
test/SemaCXX/constant-expression-cxx11.cpp
test/SemaCXX/implicit-exception-spec.cpp
test/SemaTemplate/constexpr-instantiate.cpp