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/15611] New: Illegal program not detected, RM 3.7(11)


-- RM 3.7(11)
-- No default expressions are permitted in a known_discriminant_part
-- in a declaration of a tagged type or a generic formal type.
package Test_244943 is
   type T (n: Natural := 10) is private;
private
   type T (n: Natural := 10) is tagged  -- ERROR: no default allowed
      null record;
end Test_244943;

The compiler says nothing; I was expecting something like:

test_244943:7:22: no default value allowed for discriminant N

-- 
           Summary: Illegal program not detected, RM 3.7(11)
           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
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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