With recovery expr, it is possible that we have a value-dependent expr
within non-dependent context.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This seems vaguely reasonable to me, but I don't really know what an OpenMP capture is.
@ABataev, @jdoerfert : Any thoughts or concerns here?
Some context: an expression that contains errors can exist after certain types of sema/parse errors and acts as a placeholder in the AST with unknown semantics, e.g. we often don't know what its type is.
It is modeled as dependent, but its value/type/validity depends on how an the user would correct the error rather than how a template is instantiated.
(This behavior is with the -recovery-ast flag, which will one day be default).
@hokein Callers of isDependentContext() might mike sense to audit for recovery-AST-safety as it gives fewer guarantees than it used to.