This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/33910] New: gcc Ada doesn't handle address clauses correctly in Ada 83 mode


gcc -c -gnat83 test.adb

procedure Test
is
   X : INTEGER;
   Y : INTEGER;
   for Y use at X'ADDRESS;
begin
   null;
end Test;

XD-Ada generates the error message,

%ADAC-E-ADRREPNOSYS, (1) No with clause for predefined package SYSTEM applies 
        to this unit [LRM 10.1.1(4), 13.5(3)]

Ada 83 LRM 13.5 states that package SYSTEM "must be named by a with clause that
applies to the compilation unit in which the address clause occurs".


-- 
           Summary: gcc Ada doesn't handle address clauses correctly in Ada
                    83 mode
           Product: gcc
           Version: 3.4.5
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dewi dot daniels at silver-software dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33910


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]