re PR c++/78089 (__builtin_shuffle parsing bug)
authorJakub Jelinek <jakub@redhat.com>
Mon, 31 Oct 2016 17:08:36 +0000 (18:08 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 31 Oct 2016 17:08:36 +0000 (18:08 +0100)
commitc5fed5c6f272f99c9a86eaa63f6c8c142cce0e86
treeae96439c0919731e3e449e96f7e324ec170d665f
parentf04c1e0a56efa150b061810437f14bec45e85783
re PR c++/78089 (__builtin_shuffle parsing bug)

PR c++/78089
* parser.c (cp_parser_postfix_expression): Replace return statement in
the first switch with setting postfix_expression to the return
expression and break;.

* c-c++-common/builtin-shuffle-1.c: New test.
* g++.dg/cpp0x/addressof3.C: New test.

From-SVN: r241710
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/builtin-shuffle-1.c [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/addressof3.C [new file with mode: 0644]