We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d984af5 commit 2e04f66Copy full SHA for 2e04f66
clang/lib/Sema/SemaModule.cpp
@@ -1222,7 +1222,8 @@ bool ExposureChecker::isTULocal(const NamedDecl *D) {
1222
// [basic.link]p15.5
1223
// - a specialization of a template whose (possibly instantiated) declaration
1224
// is an exposure.
1225
- if (checkExposure(PrimaryTemplate, /*Diag=*/false))
+ if (ExposureSet.count(PrimaryTemplate) ||
1226
+ checkExposure(PrimaryTemplate, /*Diag=*/false))
1227
return true;
1228
1229
// Avoid calling checkExposure again since it is expensive.
0 commit comments