re PR c++/57068 (gcc prints warning "ref-qualifiers only available with -std=c++0x...
authorJason Merrill <jason@redhat.com>
Thu, 9 May 2013 03:57:53 +0000 (23:57 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 9 May 2013 03:57:53 +0000 (23:57 -0400)
commitb0f36e5ee07dd1fa2d8345bcb1751aab3e95f980
tree4848895c505eb559dcf8278af01ea5362177be99
parent654246455d61a9d39d023309c4046c85154256f4
re PR c++/57068 (gcc prints warning "ref-qualifiers only available with -std=c++0x or -std=gnu++0x" for operator&)

PR c++/57068
* decl.c (grokdeclarator): Warn about ref-qualifiers here.
* parser.c (cp_parser_ref_qualifier_seq_opt): Not here.
* error.c (maybe_warn_cpp0x): s/0x/11/.

From-SVN: r198730
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/error.c
gcc/cp/parser.c
gcc/testsuite/g++.dg/parse/ref-qual1.C [new file with mode: 0644]