public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/28160]  New: Bogus "size of array 'foo' is too large" error with -mms-bitfields
@ 2006-06-25  8:13 kkojima at gcc dot gnu dot org
  2006-06-26 20:47 ` [Bug middle-end/28160] " seongbae dot park at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2006-06-25  8:13 UTC (permalink / raw)
  To: gcc-bugs

Several g++ tests in tmpdir-g++.dg-struct-layout-1 fail during
the compilation with the error message like

  error: size of array 'foo' is too large

with -mms-bitfields.  A reduced testcase is

typedef long int along __attribute__((aligned (32)));
struct S
{
  unsigned char a;
  along d:130;
  int e:66;
} A[1];

It looks the ms-bitfield code in stor-layout.c doesn't take
the bit field with excessive size into account and it makes
the negative remaining_in_alignment which causes the above
error.


-- 
           Summary: Bogus "size of array 'foo' is too large" error with -
                    mms-bitfields
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kkojima 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=28160


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-07-15 23:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-25  8:13 [Bug middle-end/28160] New: Bogus "size of array 'foo' is too large" error with -mms-bitfields kkojima at gcc dot gnu dot org
2006-06-26 20:47 ` [Bug middle-end/28160] " seongbae dot park at gmail dot com
2006-06-26 20:47 ` seongbae dot park at gmail dot com
2006-06-26 21:10 ` seongbae dot park at gmail dot com
2006-06-26 23:10 ` kkojima at gcc dot gnu dot org
2006-06-29 21:45 ` patchapp at dberlin dot org
2006-07-15  6:59 ` kkojima at gcc dot gnu dot org
2006-07-15 23:12 ` kkojima at gcc dot gnu dot org

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).