]> git.ipfire.org Git - thirdparty/gcc.git/commit
a68: Fix ICE in a68_extract_indicants
authorIain Buclaw <ibuclaw@gdcproject.org>
Tue, 3 Feb 2026 23:21:32 +0000 (00:21 +0100)
committerJose E. Marchesi <jemarch@gnu.org>
Tue, 3 Feb 2026 23:21:32 +0000 (00:21 +0100)
commit600b106d9bd3901bfbf3335124c57b1ad46d149d
tree3f2fc30404a326e9df1d671f3fc924276d122ec3
parent9d9663ea1533942e041e184947b19f94eb63b934
a68: Fix ICE in a68_extract_indicants

At the time a68_extract_indicants executes nothing guarantees that the
module text following a module symbol is well formed.

gcc/algol68/ChangeLog:

* a68-parser-extract.cc (a68_extract_indicants): Don't call FORWARD if
skip_module_text returns NO_NODE.

gcc/testsuite/ChangeLog:

* algol68/compile/error-module-definition-1.a68: New test.
* algol68/compile/error-module-definition-2.a68: New test.
gcc/algol68/a68-parser-extract.cc
gcc/testsuite/algol68/compile/error-module-definition-1.a68 [new file with mode: 0644]
gcc/testsuite/algol68/compile/error-module-definition-2.a68 [new file with mode: 0644]