This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

debug/9239: test in gdb ice on debug code while compling


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]