public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ludovic dot brenta at insalien dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/17954] New: Legal program rejected, packed array of booleans Date: Tue, 12 Oct 2004 18:54:00 -0000 [thread overview] Message-ID: <20041012185408.17954.ludovic.brenta@insalien.org> (raw) Debian Bug #276227: -- interestingly, the error message is different depending on -- the number of enumeration elements in T1 and T2. package Test_124 is type T1 is (b01,b02,b03,b04,b05,b06,b07,b08,b09,b10, b11,b12,b13,b14,b15,b16,b17,b18,b19,b20, b21,b22,b23,b24,b25,b26,b27,b28,b29,b30, b31,b32); type T1_arr_unconstrained is array (T1 range <>) of boolean; type T1_arr_constrained is new T1_arr_unconstrained (T1); pragma pack (T1_arr_unconstrained); for T1_arr_constrained'size use 32; -- line 12 type T2 is (b01,b02,b03,b04,b05,b06,b07,b08,b09,b10, b11,b12,b13,b14,b15,b16,b17,b18,b19,b20, b21,b22,b23,b24,b25,b26,b27,b28,b29,b30, b31); -- one fewer than T1 type T2_arr_unconstrained is array (T2 range <>) of boolean; type T2_arr_constrained is new T2_arr_unconstrained (T2); pragma pack (T2_arr_unconstrained); for T2_arr_constrained'size use 32; -- line 22 end Test_124; The actual output from GCC 3.4.2 is: test_124.ads:12:04: size given for "T1_arr_constrained" too small test_124.ads:12:04: explicit pragma Pack is required gnatmake: "test_124.ads" compilation error If line 12 is commented out: test_124.ads:22:36: size for "T2_arr_constrained" too small, minimum allowed is 248 gnatmake: "test_124.ads" compilation error -- Summary: Legal program rejected, packed array of booleans Product: gcc Version: 3.4.2 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: i486-linux GCC host triplet: i486-linux GCC target triplet: i486-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17954
next reply other threads:[~2004-10-12 18:54 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-10-12 18:54 ludovic dot brenta at insalien dot org [this message] 2004-11-01 1:40 ` [Bug ada/17954] " pinskia at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20041012185408.17954.ludovic.brenta@insalien.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).