]> git.ipfire.org Git - thirdparty/gcc.git/commit
modula2: issue the parameter incompatibility error message based on dialect
authorGaius Mulley <gaiusmod2@gmail.com>
Thu, 25 Apr 2024 14:19:30 +0000 (15:19 +0100)
committerGaius Mulley <gaiusmod2@gmail.com>
Thu, 25 Apr 2024 14:19:30 +0000 (15:19 +0100)
commit070dd5c883ec2c0be542f448bd82d0f7f0ead390
treecfe0fa7b73588bb86b9dc1edf7b9b1f440300ad4
parent59ff81835fee22a9d4c9a481a4d1814583aae945
modula2: issue the parameter incompatibility error message based on dialect

This tiny patch improves the parameter incompatibility error message by
having a different message for the dialect chosen mentioning the specific
violation.  PIM uses assignment rules for pass by value and expression
rules for pass by reference.  ISO uses expression type checking for
pass by value and pass by reference.

gcc/m2/ChangeLog:

* gm2-compiler/M2FileName.def (CalculateFileName): Remove
quoted string in comment.
* gm2-compiler/M2Range.mod (FoldTypeParam): Generate dialect
specific parameter incompatibility error message.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/m2/gm2-compiler/M2FileName.def
gcc/m2/gm2-compiler/M2Range.mod