[Chapel Merge] dyno: Fix bug that caused syntax errors to disappe

Branch: refs/heads/main
Revision: d9e5b95
Author: dlongnecke-cray
Link: dyno: Fix bug that caused syntax errors to disappear by dlongnecke-cray · Pull Request #19923 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #19923 from dlongnecke-cray/dyno-fix-syntax-error-bug

dyno: Fix bug that caused syntax errors to disappear (#19923)

Fix a bug which caused syntax errors not to propagate out of the
builder and into the compiler context. This caused programs
with syntax errors such as missing a closing brace to silently
compile.

Resolves #19922.

TESTING

  • ALL on linux64, standard

Reviewed by @mppf. Thanks!

Signed-off-by: David Longnecker dlongnecke-cray@users.noreply.github.com

Modified Files:
A test/parsing/BlockMissingClosingBrace.chpl

A test/parsing/BlockMissingClosingBrace.good
M compiler/dyno/include/chpl/queries/ErrorMessage.h
M compiler/dyno/lib/parsing/parser-yyerror.h
M compiler/dyno/lib/parsing/parsing-queries.cpp
M compiler/dyno/lib/queries/ErrorMessage.cpp
M test/domains/sungeun/rect/at_operator.bad
M test/users/rohanbadlani/bugs/bug1.bad

Compare: https://github.com/chapel-lang/chapel/compare/50ab18bb89a6...d9e5b95300e1