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/21490] Illegal program not detected, RM 3.6(11)



------- Comment #2 from charlet at gcc dot gnu dot org  2009-07-19 14:37 -------
This is now handled properly (has been for a long time actually).
In Ada 95 mode, the code is rejected:

test_306835.adb:9:04: instantiation error at line 5
test_306835.adb:9:04: aliased component type must be constrained (RM 3.6(11))

and in Ada 2005 mode (the default) the code is accepted, as per AI 363


-- 

charlet at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


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


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