The following code tries to reference an intrinsic subprogram in SVN trunk
and makes GNAT crash in the 4.3.x series:

package P1 is
   type T1 is tagged null record;
   function Something (X, Y : T1) return Boolean renames "=";
end P1;

GCC 4.4.0 (20080411)
% gcc -c p1.ads
p1.ads:2:09: prefix of "Unrestricted_Access" attribute cannot be intrinsic

GCC 4.3.x
% gcc -c p1.ads
+===========================GNAT BUG DETECTED==============================+
| 4.3.1 20080401 (prerelease) (x86_64-pc-linux-gnu) GCC error:             |
| in gnat_to_gnu_entity, at ada/decl.c:301                                 |
| Error detected at p1.ads:2:9                                             |


-- 
           Summary: Primitive renaming a predefined operation
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sam at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


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

Reply via email to