c++/6316: trap when compiling file

jakub@gcc.gnu.org jakub@gcc.gnu.org
Tue Apr 16 15:00:00 GMT 2002


Synopsis: trap when compiling file

State-Changed-From-To: open->analyzed
State-Changed-By: jakub
State-Changed-When: Tue Apr 16 14:43:44 2002
State-Changed-Why:
    Simplified into (at -O3):
    struct A { ~A() throw() {} };
    template<typename T, typename U> struct B { U a; B(const T *); };
    typedef B<char, A> C;
    struct D { D(); };
    struct E { virtual ~E(); };
    
    E *bar ();
    
    void
    foo ()
    {
      E *a = bar ();
    }
    
    extern char *z [];
    
    E *
    bar ()
    {
      struct F : public E
      {
        F ()
        {
          for (int i = 0; i < 2; i++)
            C e = z[i];
        }
        D x, y;
      };
      return new F ();
    }

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6316



More information about the Gcc-bugs mailing list