This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/15611] New: Illegal program not detected, RM 3.7(11)
- From: "ludovic dot brenta at insalien dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 May 2004 09:44:17 -0000
- Subject: [Bug ada/15611] New: Illegal program not detected, RM 3.7(11)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
-- 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