[PATCH] D85613: [clang] Look through bindings when checking whether a default argument references a local entity.
Bruno Ricci via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 11 07:41:16 PDT 2020
riccibruno added inline comments.
================
Comment at: clang/lib/Sema/SemaDeclCXX.cpp:112
//
if (DRE->isNonOdrUse() != NOUR_Unevaluated)
return S.Diag(DRE->getBeginLoc(),
----------------
This can use `DiagnoseIfOdrUse` as soon as the inconsistency between parameters and local variables is removed.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85613/new/
https://reviews.llvm.org/D85613
More information about the cfe-commits
mailing list