This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/35567] spurious character in array definition generates gnat error rather than syntax error
- From: "sam at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Mar 2008 15:47:49 -0000
- Subject: [Bug ada/35567] spurious character in array definition generates gnat error rather than syntax error
- References: <bug-35567-15909@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from sam at gcc dot gnu dot org 2008-03-13 15:47 -------
Confirmed on trunk:
GNAT 4.4.0 20080311 (experimental)
Copyright 1992-2007, Free Software Foundation, Inc.
+===========================GNAT BUG DETECTED==============================+
| 4.4.0 20080311 (experimental) (i686-pc-linux-gnu) Program_Error sem.adb:630
explicit raise|
| Error detected at empire.ads:46:93 |
GNAT thinks that there is a missing semicolon before the bogus "I" but doesn't
recover properly from it. Here is a reduced test case:
package T is
A : Boolean B :=
True;
end T;
% gcc -c t.ads
+===========================GNAT BUG DETECTED==============================+
| 4.4.0 20080311 (experimental) (i686-pc-linux-gnu) Program_Error sem.adb:630
explicit raise|
| Error detected at t.ads:3:15 |
--
sam at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sam at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-03-13 15:47:49
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35567