]> gcc.gnu.org Git - gcc.git/commit
PR modula2/114380 Incorrect type specified in an error message
authorGaius Mulley <gaiusmod2@gmail.com>
Mon, 18 Mar 2024 16:40:35 +0000 (16:40 +0000)
committerGaius Mulley <gaiusmod2@gmail.com>
Mon, 18 Mar 2024 16:40:35 +0000 (16:40 +0000)
commitd2029bbc69df7341775faf6cf1aa13d978c223a1
tree99c23080db4faa7d713c729873083cb99ad12515
parent3e3ad8eeb41b6a6964604bbbb1bb3dee0182bbf9
PR modula2/114380 Incorrect type specified in an error message

This patch corrects an error message relating to a variable of
a SET type. The bugfix is not to skip over set types (in
GetLowestType).

gcc/m2/ChangeLog:

PR modula2/114380
* gm2-compiler/SymbolTable.mod (GetLowestType): Do not
skip over a set type, but return sym.

gcc/testsuite/ChangeLog:

PR modula2/114380
* gm2/pim/fail/badset7.mod: New test.

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