]> gcc.gnu.org Git - gcc.git/commit
PR modula2/114443 missing quote cause ICE
authorGaius Mulley <gaiusmod2@gmail.com>
Sat, 23 Mar 2024 15:49:23 +0000 (15:49 +0000)
committerGaius Mulley <gaiusmod2@gmail.com>
Sat, 23 Mar 2024 15:49:23 +0000 (15:49 +0000)
commitc8a343f9f8602f4e6c1b385ddbeb58572234d447
tree6653d165108ca2aceee4970e3c64beee32affb57
parent80a0cb37456c49dbc25cca7cd554f78bc504373e
PR modula2/114443 missing quote cause ICE

This patch inserts a missing quotation at the end of a line
if required (after an appropiate error message is generated).

gcc/m2/ChangeLog:

PR modula2/114443
* m2.flex: Call AddTokCharStar with a stringtok if
end of line is reached without a closing quote.

gcc/testsuite/ChangeLog:

PR modula2/114443
* gm2/pim/fail/missingquote.mod: New test.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/m2/m2.flex
gcc/testsuite/gm2/pim/fail/missingquote.mod [new file with mode: 0644]
This page took 0.060569 seconds and 5 git commands to generate.