aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2006-02-15 10:41:22 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2006-02-15 10:41:22 +0100
commitae8926a0edcf620d090dbab1a5d97cad6ac93666 (patch)
treec2ef272c4d5f2d1d7bf3f2b198a6d35c44cebefa /gcc
parent9312a51e5fa251fd4b129019cc2fd5f198c46586 (diff)
downloadgcc-ae8926a0edcf620d090dbab1a5d97cad6ac93666.zip
gcc-ae8926a0edcf620d090dbab1a5d97cad6ac93666.tar.gz
gcc-ae8926a0edcf620d090dbab1a5d97cad6ac93666.tar.bz2
g-spipat.adb (Image, [...]): These two cases were generating incorrect output...
2006-02-13 Robert Dewar <dewar@adacore.com> * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM): These two cases were generating incorrect output, and if this unit was built with checks on, generated a discriminant mismatch constraint error. From-SVN: r111076
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/g-spipat.adb6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/g-spipat.adb b/gcc/ada/g-spipat.adb
index ab6bdd5..8a5375d 100644
--- a/gcc/ada/g-spipat.adb
+++ b/gcc/ada/g-spipat.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1998-2005, AdaCore --
+-- Copyright (C) 1998-2006, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -2484,11 +2484,11 @@ package body GNAT.Spitbol.Patterns is
when PC_Assign_Imm =>
Delete_Ampersand;
- Append (Result, "* " & Str_VP (Refs (E.Index - 1).VP));
+ Append (Result, "* " & Str_VP (Refs (E.Index).VP));
when PC_Assign_OnM =>
Delete_Ampersand;
- Append (Result, "** " & Str_VP (Refs (E.Index - 1).VP));
+ Append (Result, "** " & Str_VP (Refs (E.Index).VP));
when PC_Any_CH =>
Append (Result, "Any ('" & E.Char & "')");