[Bug c++/50563] Weird syntax acceptance rules for non-static data members initialized in place (C++0x)

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Sep 29 08:20:00 GMT 2011


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-09-29 07:55:55 UTC ---
struct S1 {
  int a{10}, b{20};     // OK
};

struct S2 {
  int a, b = 20;        // OK
};

struct S3 {
  int a = 10, b = 20;   // Error
};

CCing Jason



More information about the Gcc-bugs mailing list