[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#582219: [fixed in 4.5] gnat-4.4: cannot import abstract subprogram



Package: gnat-4.4

Version: 4.4.0-1

Severity: minor

Justification: optional, non-standard feature that is not yet implemented



with the following packages installed:



ii  gnat           4.4+1          The GNU Ada compiler

ii  gnat-4.4       4.4.4-2        The GNU Ada compiler

ii  gnat-4.4-base  4.4.4-2        The GNU Compiler Collection (gnat base

packa

ii  gprbuild       1.3.0-1        a multi-language extensible build tool

ii  gprbuild-doc   1.3.0-1        a multi-language extensible build tool



$ cp -a /usr/share/doc/gprbuild-doc/examples/ada_cpp .

$ cd ada_cpp

$ make

gprconfig --batch --config Ada,,sjlj  --config C++ -o default.cgpr

Creating configuration file: default.cgpr

gprbuild animals.gpr

gcc-4.4 -c -g -gnat05 -gnatwA main.adb

animals.ads:33:24: cannot import abstract subprogram "Number_Of_Teeth"

declared at line 5

animals.ads:36:24: cannot import abstract subprogram "Set_Owner" declared

at line 10

gprbuild: *** compilation phase failed

make: *** [all] Error 4



The problem is simply that gprbuild (both 1.2.0 and 1.3.0) contains

examples that assume a more recent version of the Ada front-end.  gnat-4.4

is roughly but not exactly equivalent to GNAT GPL 2008; releases after that

add new features for interfacing with C++ and in particular C++ virtual

methods, multiple inheritance and constructors.  These features will be

available in the future package gnat-4.5.



-- 

Ludovic Brenta.





Reply to: