Open thtsikas opened 2 weeks ago
Hello Themos, Are you requesting for better error messages from the compiler for unterminated block constructs?
Yes. At the moment, a 20 line source, can take 20 seconds to produce 835,000+ lines of error messages.
@llvm/issue-subscribers-flang-frontend
Author: None (thtsikas)
Does https://github.com/llvm/llvm-project/pull/90480 make it better?
Sadly, no. It's not the quality of the messages that is the problem in this Issue. It is the quantity of them and the cpu time expended.
The parser is reporting the scope of the error. As the nesting of the scope increases there are more messages in the error message for the nested scopes. This can be reproduced without OpenMP in the following example.
block
block
block
block
block
block
block
block
block
block
end
Reopened since the patch does not fix this issue. I missed removing the fixes tag before submitting.
I noticed that multiple OpenMP errors of this kind cause substantial slowdown and excessive error message output.