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]

[Bug debug/16035] [3.4/3.5 Regression] [non-unit-at-a-time] internal compiler error: in gen_subprogram_die, at dwarf2out.c:10798


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-06-18 22:50 -------
Here's a testcase that triggers the bug in 3.4.0 but not in mainline:

=======================================
namespace N
{
  void foo1();

  inline int foo2(int i)
  {
    if (i) foo1();
  }

  struct A
  {
    A();
    ~A() { foo2(0); }
  };

  struct B : A {};
  struct C : B {};
  struct D : C {};

  struct E
  {
    D d1, d2;
  };

  inline E bar1()
  {
    E bar2 (const E&);
    E e;
    return bar2(E());
  }

  E e=bar1();
}
=======================================


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-18 22:50:21
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16035


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