comp.lang.ada
 help / color / mirror / Atom feed
From: Sébastien <seb.morand@gmail.com>
Subject: Bug in GCC ?
Date: Mon, 19 May 2008 15:50:57 +0000
Date: 2008-05-19T15:50:57+00:00	[thread overview]
Message-ID: <g0s7hc$9bn$1@registered.motzarella.org> (raw)

He is the sample code I'm trying to compile:

with Ada.Containers.Hashed_Maps;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Strings.Unbounded.Hash;

package SCMAL.Tools.HashedMaps is

     package HashedStrStr is
         new Ada.Containers.Hashed_Maps(
         Key_Type => Unbounded_String,
         Element_Type => Unbounded_String,
         Hash => Ada.Strings.Unbounded.Hash,
         Equivalent_Keys => "=");

end SCMAL.Tools.HashedMaps;


At compile time:

$ gnatmake -Pgentest -cargs -gnatn
gcc-4.1 -c -gnat05 -g3 -O2 -gnatn -I- -gnatA 
/var/local/mscm/ada/tests/generic/scmal-tools-hashedmaps.ads
+===========================GNAT BUG DETECTED==============================+
| 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu3) 
(i486-pc-linux-gnu) GCC error:|
| in referenced_var_lookup, at tree-dfa.c:578                              |
| No source file position information available                            |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| Use a subject line meaningful to you and us to track the bug.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact gcc-4.1 or gnatmake command that you entered.          |
| Also include sources listed below in gnatchop format                     |
| (concatenated together with no headers between files).                   |
+==========================================================================+

It works fine if I remove the -gnatn and -O2

Sebastien



             reply	other threads:[~2008-05-19 15:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-19 15:50 Sébastien [this message]
2008-05-19 15:57 ` Bug in GCC ? Matthew Heaney
2008-05-19 16:47   ` Sébastien
2008-05-19 17:41 ` Samuel Tardieu
2008-05-19 18:29 ` Ludovic Brenta
2008-05-19 19:32   ` Sebastien Morand
2008-05-19 21:56     ` Ludovic Brenta
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox