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 c++/14230] New: ICE in cp_expr_size


struct A
{
  A ();
  A (const A&);
  A& operator= (const A&);
};

template<class T>
struct B
{
  struct C
  {
    T y;
    T f () { return y; }
  };

  T f () const
  {
    C c;
    return c.f ();
  }
};

struct D
{
  A a;
};

void foo (B<D> &x)
{
  const A& z = x.f().a;
}

causes ICE on all platforms I've tried, 3.3.3 and 3.4.
It doesn't cause ICE in 2.96-RH, so looks like regression.

-- 
           Summary: ICE in cp_expr_size
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: x86_64-redhat-linux
  GCC host triplet: x86_64-redhat-linux
GCC target triplet: x86_64-redhat-linux


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


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