]> granicus.if.org Git - clang/commit
Mark declarations as referenced by a default argument in a
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 11 Jun 2019 23:51:46 +0000 (23:51 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 11 Jun 2019 23:51:46 +0000 (23:51 +0000)
commitf80fa1d28cd7d31f1744cfffa90f804e4578e9ac
tree775c1ede9f097cdb5e265a240fbc373704df8412
parente75ebf573f7f71e65e7bdfa288254237eb563255
Mark declarations as referenced by a default argument in a
potentially-evaluated context.

This applies even if the use of the default argument is within an
unevaluated context.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363113 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/SemaTemplate/default-arguments.cpp