comp.lang.ada
 help / color / mirror / Atom feed
From: xavier grave <xavier.grave@ipno.in2p3.fr>
Subject: compilation problem with gnat 4.4 about access type
Date: Tue, 01 Dec 2009 17:28:25 +0100
Date: 2009-12-01T17:28:25+01:00	[thread overview]
Message-ID: <hf3g79$45h$1@ccpntc8.in2p3.fr> (raw)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm trying to compile a package containing an abstract remote type with
gnat 4.4 (using debian package from unstable amd64 and powerpc arch) at
the line declaring an access to the type I get this message :

events_receivers.ads:27:09: expected type
"Ada.Streams.Stream_Element_Offset"
events_receivers.ads:27:09: found type "Standard.Long_Integer"

The offending code :
with Ada.Streams;

package Events_Receivers is
   pragma Remote_Types;
   type Supported_Events_Type is (Log4ada_Event, String_Event);
   type Events_Receiver_Type is abstract tagged limited private;
   type Events_Receivers_Class_Access is access all
Events_Receiver_Type'Class; -- this is line 27
...

The same code with gnat gpl 2009 compile without problem

Does somebody already have experimented such behaviour ?

Thanks in advance, xavier
PS: the command line for the offending compilation :
gcc-4.4 -c
- -I/home/narval/org.log4Ada/server/obj/x86_64//../../../client/src
- -I/home/narval/org.log4Ada/server/obj/x86_64//../../src
- -I/home/narval/org.log4Ada/server/obj/x86_64//../../demos
- -I/home/narval/org.log4Ada/server/obj/x86_64//../../../utilities/src
- -I/usr/share/ada/adainclude/polyorb -I- -gnatA
/home/narval/org.log4Ada/client/src/events_receivers.adb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksVRCkACgkQVIZi0A5BZF6Y9gCgp4dUj4o5Il+DZ1i3SSaUOgNo
fKkAn27vTSgUP2hJDESL6A12iJ8bNdM6
=NzYF
-----END PGP SIGNATURE-----



             reply	other threads:[~2009-12-01 16:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-01 16:28 xavier grave [this message]
2009-12-02 12:55 ` compilation problem with gnat 4.4 about access type xavier grave
replies disabled

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