https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65271
Bug ID: 65271 Summary: Mem-declarator after class-specifier cannot declare rvalue reference Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: potswa at mac dot com The grammar seems to be missing an allowance for the && token after a class-specifier. This fails: struct {} && m = {}; This works: struct {} const && m = {};