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/16100] New: Compiler ignores legal override of abstract subprogram


package pak1 is
private
   type T1 is abstract tagged null record;

   procedure p1(x: T1) is abstract;

   generic
   package pak2 is
      type T2 is abstract new T1 with null record;
   end pak2;

end pak1;

package pak1.pak3 is
   private

      package new_pak2 is new pak2;
      type T3 is new new_pak2.T2 with null record;

      procedure p1(x: T3);

end pak1.pak3;

with Pak1.Pak3;
package Test_248686 renames Pak1.Pak3;



pak1-pak3.ads:6:12: type must be declared abstract or "p1" overridden
gnatmake: "test_248686.ads" compilation error

-- 
           Summary: Compiler ignores legal override of abstract subprogram
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ludovic dot brenta at insalien dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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