From a6bb66d5a34279f6b762cedc577155de6259ff30 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Mon, 8 Jun 2009 01:52:52 +0000 Subject: Fix SF/2799773 * interp/c-util.boot (diagnoseUnknownType): Diagnose duplicate fields in Record or Union, or duplicate constants in Enumeration. * interp/i-eval.boot (checkRecordOrUnionFields): New. (evaluateType): Use it. * testsuite/interpreter/sf-2799773.input: New. --- src/doc/msgs/s2-us.msgs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/doc/msgs') diff --git a/src/doc/msgs/s2-us.msgs b/src/doc/msgs/s2-us.msgs index d3e2ca8c..9f6cc921 100644 --- a/src/doc/msgs/s2-us.msgs +++ b/src/doc/msgs/s2-us.msgs @@ -355,6 +355,12 @@ S2IL0028 S2IL0029 No .ao files were found when %2 was unarchived into directory %1. The file %2 was not compiled. +S2IL0030 + The Record or Union field %1bp is specified more than once. +S2IL0031 + Enumeration constants must be identifiers. +S2IL0032 + You cannot repeat enumeration constants, e.g. %1pb S2IM0001 The previous declaration of %1b as %2bp is incompatible with its new use as a function. If you do not want the old value, issue %b )clear prop -- cgit v1.2.3