Talk About Network

Google





Programming > Ada > Bug in GCC ?
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 5710 of 6006
Post > Topic >>

Bug in GCC ?

by =?ISO-8859-1?Q?S=E9bastien?= <seb.morand@[EMAIL PROTECTED] > May 19, 2008 at 03:50 PM

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 re****t; 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 re****t.              
|
| 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
 




 7 Posts in Topic:
Bug in GCC ?
=?ISO-8859-1?Q?S=E9bastie  2008-05-19 15:50:57 
Re: Bug in GCC ?
Matthew Heaney <mheane  2008-05-19 08:57:41 
Re: Bug in GCC ?
=?ISO-8859-1?Q?S=E9bastie  2008-05-19 16:47:56 
Re: Bug in GCC ?
Samuel Tardieu <sam@[E  2008-05-19 19:41:02 
Re: Bug in GCC ?
Ludovic Brenta <ludovi  2008-05-19 20:29:22 
Re: Bug in GCC ?
Sebastien Morand <seb.  2008-05-19 19:32:52 
Re: Bug in GCC ?
Ludovic Brenta <ludovi  2008-05-19 23:56:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 13:50:53 PST 2009.