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++/21123] [4.0/4.1 regression] ICE in cp_expr_size, at cp/cp-objcp-common.c:101



------- Comment #32 from jason at gcc dot gnu dot org  2005-11-23 23:56 -------
My earlier patch fixed all the reduced testcases, but not the unreduced one. 
Here's a reduced testcase that still fails (adding a by-value parm to the
virtual function):

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

struct B
{
  virtual A f(A);
};

struct C : virtual B
{
  virtual A f(A);
};

A C::f(A a)
{
  return a;
}


-- 


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


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