public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: pinskia@physics.uc.edu
To: gcc-gnats@gcc.gnu.org
Subject: debug/9239: test in gdb ice on debug code while compling
Date: Thu, 09 Jan 2003 06:36:00 -0000	[thread overview]
Message-ID: <20030109063410.11503.qmail@sources.redhat.com> (raw)


>Number:         9239
>Category:       debug
>Synopsis:       test in gdb ice on debug code while compling
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 08 22:36:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Pinski
>Release:        gcc version 3.4 20030108 (experimental)
>Organization:
>Environment:
Reading specs from /home/gates/pinskia/linux/lib/gcc-lib/i686-pc-linux-gnu/3.4/specs
Configured with: 
Thread model: posix
gcc version 3.4 20030108 (experimental)
>Description:
g++ ice on when compiling anon-union.cc in gdb test suite, g++ anon-union.cc -g -lm

gdb compile failed, /home/gates/pinskia/src/gnu/combinesources/src/gdb/testsuite/gdb.c++/anon-union.cc: In
   function `int main()':
/home/gates/pinskia/src/gnu/combinesources/src/gdb/testsuite/gdb.c++/anon-union.cc:55: internal compiler error: in
   gen_decl_die, at dwarf2out.c:11974
>How-To-Repeat:

struct Foo {
  union {
    int zero;
  } num1;
  struct X {
      int rock;
      unsigned int rock2;
  };
  union {
    int pebble;
    X x;
    union {
      int qux;
      unsigned int mux;
    };
    unsigned int boulder;
  };
  union {
    int paper;
    unsigned int cloth;
  };
  union {
    int two;
    unsigned int three;
  } num2;
};

union Bar {
  int x;
  unsigned int y;
};


int main()
{
  Foo foo = {0, 0};

  foo.paper = 33;
  foo.pebble = 44;
  foo.mux = 55;

  Bar bar = {0};

  union {
    int z;
    unsigned int w;
  }; w = 0;

  bar.x = 33;

  w = 45;

}
>Fix:
unknown
>Release-Note:
>Audit-Trail:
>Unformatted:


                 reply	other threads:[~2003-01-09  6:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20030109063410.11503.qmail@sources.redhat.com \
    --to=pinskia@physics.uc.edu \
    --cc=gcc-gnats@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: link
Be 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).