CVS difference for ai22s/ai22-0011-1.txt
--- ai22s/ai22-0011-1.txt 2021/11/13 01:52:35 1.1
+++ ai22s/ai22-0011-1.txt 2021/11/13 08:31:23 1.2
@@ -243,8 +243,26 @@
From: Egil Harald Hoevik
Sent: Friday, May 28, 2021 7:40 AM
-***** Get base 64 message *****
+> It does raise Constraint_Error.
+explicitly stating Roman_Number'Base(0) seems to be a workaround
+
+> There is another problem in GNAT:
+>
+> X: Roman_Number := "III" * "IV" * "XII"; -- 144 (that is, CXLIV)
+> roman.adb:51:30: error: there is no applicable operator "*" for a string
+> type
+>
+> Replacing this by
+> X: Roman_Number := to_Roman_number("III") * "IV" * "XII";
+> it compiles.
+
+That triggered a GNAT bug-box here with the newest GNAT Pro wavefront (22.0w 20210424)
+however, both
+ X: Roman_Number := to_Roman_number("III") * to_Roman_number("IV") * to_Roman_number("XII");
+and
+ X: Roman_Number := Roman_Number' ("III") * Roman_Number' ("IV") * Roman_Number'("XII");
+works, though
****************************************************************
Questions? Ask the ACAA Technical Agent