This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Support rvalue reference type in parser
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 02 Aug 2017 13:13:19 -0400
- Subject: [binutils-gdb] Support rvalue reference type in parser
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 53cc15f5fe1f5e2358994d4f60f1c2aa9115004d ***
Author: Artemiy Volkov <artemiyv@acm.org>
Branch: master
Commit: 53cc15f5fe1f5e2358994d4f60f1c2aa9115004d
Support rvalue reference type in parser
This patch implements correct parsing of C++11 rvalue reference typenames.
This is done in full similarity to the handling of regular references by adding
a '&&' token handling in c-exp.y, defining an rvalue reference type piece, and
implementing a follow type derivation in follow_types().
gdb/ChangeLog
PR gdb/14441
* c-exp.y (ptr_operator): Handle the '&&' token in the typename.
* parse.c (insert_type): Change assert statement.
(follow_types): Handle rvalue reference types.
* parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
constant.