------- Comment #8 from redi at gcc dot gnu dot org  2010-03-31 08:55 -------
(N.B. your email to gcc-patches gives the wrong PR number in the subject.)

This reject the following valid program:

struct X {
  X() : c(0), r(c) {}
  const int c;
  int const& r;
};

int main()
{
  new X;
}

If there is a default constructor it will be called, and so the members will
not be uninitialized.


-- 


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

Reply via email to