public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* debug/9239: test in gdb ice on debug code while compling
@ 2003-01-09  6:36 pinskia
  0 siblings, 0 replies; only message in thread
From: pinskia @ 2003-01-09  6:36 UTC (permalink / raw)
  To: gcc-gnats


>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:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-09  6:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-09  6:36 debug/9239: test in gdb ice on debug code while compling pinskia

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