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/15803] New: Illegal program not detected, RM 8.3(19)


(Debian bug #246385)

package Test_246385 is
   type acc_p is private;
private
   type acc_p is access procedure
      (x: acc_p);  --ERROR: acc_p not visible until end of declaration
end Test_246385;


I expect an error message such as:
test_246385.ads:5:10: "acc_p" not visible until end of declaration, RM 8.3(19)

But the compiler says naught.

-- 
           Summary: Illegal program not detected, RM 8.3(19)
           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=15803


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