You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IIRC, this one was not trivial to fix, as in principle, we only want to ignore diag::warn_unused_result if (i) value capture is enabled, and (ii) only for the last parsed statement.
However, as the diagnostic is emitted during parsing (see SemaStmt.cpp), I think the only way of conditionally emitting this warning -given the two conditions above-, would be to buffer all the diagnostics and then filter this one based on the cling::CompilationOptions and the source location.
Otherwise, we can always fallback to the naive fix of just disable/filter this diagnostic in every case.
Yes, I agree this is non-trivial to fix after reading through #8622. But I decided to open an issue just to keep track of the problem because it affects a test with GCC 12; not sure if we can do anything for that one in particular in the test code...
Similar to #8622, but in the interpreter:
(with libstdc++12)
This currently makes
roottest-cling-stl-default-VectorSort
fail with GCC 12.The text was updated successfully, but these errors were encountered: