cp_parser_range_for: use safe_push instead of quick_push (PR
authorMartin Liska <marxin@gcc.gnu.org>
Thu, 24 Nov 2016 11:26:12 +0000 (11:26 +0000)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 24 Nov 2016 11:26:12 +0000 (11:26 +0000)
commitbf2df7a9b39897740e6b2fc8c03b1b195748c98f
treed7ecca64a0d573aae0f2467ce321f213a81c21be
parentadf86091b134fdfa5aadfd3d2b375f63a50d4ca8
cp_parser_range_for: use safe_push instead of quick_push (PR

PR bootstrap/78493
* parser.c (cp_parser_range_for): Use safe_push instead of quick_push.
PR bootstrap/78493
* g++.dg/cpp1z/decomp18.C: New test.

From-SVN: r242828
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/decomp18.C [new file with mode: 0644]