There may be cases in which we want to diagnose a type as unavailable but it may not be complete at the time. Setting MeaningfulToClassTemplateDefinition fixes this issue.
This fixes: https://github.com/llvm/llvm-project/issues/61815
Differential D147495
[Clang][Attributes] Add MeaningfulToClassTemplateDefinition to unavailable attribute shafik on Apr 3 2023, 9:15 PM. Authored by
Details There may be cases in which we want to diagnose a type as unavailable but it may not be complete at the time. Setting MeaningfulToClassTemplateDefinition fixes this issue. This fixes: https://github.com/llvm/llvm-project/issues/61815
Diff Detail Event TimelineComment Actions LGTM, though please add a release note about the fix. I don't *think* this qualifies as a potentially breaking change, though it does theoretically have the ability to cause code which previously compiled to no longer compile. At least, my search over sourcegraph didn't come up with any results (https://sourcegraph.com/search?q=context:global+lang:C%2B%2B+-file:.*test.*+template+%3Ctypename%7Cclass+.*%3E+__attribute__%5C%28%5C%28unavailable&patternType=regexp&sm=1&groupBy=repo). |