[Bug c++/65271] New: Mem-declarator after class-specifier cannot declare rvalue reference
potswa at mac dot com
gcc-bugzilla@gcc.gnu.org
Mon Mar 2 02:35:00 GMT 2015
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 = {};
More information about the Gcc-bugs
mailing list