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)
commite10d304d204f6c5f4f280019f97b66227cb43162
tree9b49dea1a1cd14f226607ee2dd9b577c864aa1bf
parente030a63868484a6738b10b5ecb224e5fe0ab8c67
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.

llvm-svn: 167514
clang/lib/Sema/SemaExpr.cpp
clang/lib/Sema/SemaOverload.cpp
clang/test/SemaCXX/constant-expression-cxx11.cpp
clang/test/SemaCXX/implicit-exception-spec.cpp
clang/test/SemaTemplate/constexpr-instantiate.cpp