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++/58328] [C++11] bogus: error: constructor required before non-static data member for


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

--- Comment #2 from Paul Pluzhnikov <ppluzhnikov at google dot com> ---
(In reply to Paolo Carlini from comment #1)
> I suspect the error isn't bogus, current clang++ also rejects it.

Hmm, perhaps you are correct. The original test that is *not* rejected by clang
was:

struct A {
  struct B {
    int x, y = 1;
  };

  A(const B& opts = B()) {}
};

But perhaps Clang doesn't reject it in error?


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