* constexpr.c (potential_constant_expression_1) <case RANGE_FOR_STMT>: Recur into RANGE_FOR_INIT_STMT. * cp-tree.def: Add RANGE_FOR_INIT_STMT to RANGE_FOR_STMT. * cp-tree.h (RANGE_FOR_INIT_STMT): Define. * dump.c (cp_dump_tree) <case RANGE_FOR_STMT>: Also dump RANGE_FOR_INIT_STMT. * pt.c (tsubst_expr) <case RANGE_FOR_STMT>: Recur into RANGE_FOR_INIT_STMT. * semantics.c (begin_range_for_stmt): Adjust call to build_stmt. Do put the init statement in RANGE_FOR_INIT_STMT. (finish_range_for_decl): Pop it for templates. * g++.dg/cpp2a/range-for11.C: New test. * g++.dg/cpp2a/range-for12.C: New test. * g++.dg/cpp2a/range-for13.C: New test. * g++.dg/cpp2a/range-for14.C: New test. * g++.dg/cpp2a/range-for15.C: New test. * g++.dg/cpp2a/range-for16.C: New test. * g++.dg/cpp2a/range-for17.C: New test. * g++.dg/cpp2a/range-for18.C: New test. * g++.dg/parse/error61.C (foo): Adjust dg-error. From-SVN: r264158
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
aggr1.C | Loading commit data... | |
aggr2.C | Loading commit data... | |
bitfield1.C | Loading commit data... | |
bitfield2.C | Loading commit data... | |
bitfield3.C | Loading commit data... | |
constexpr-inst1.C | Loading commit data... | |
cplusplus.C | Loading commit data... | |
desig1.C | Loading commit data... | |
desig2.C | Loading commit data... | |
desig3.C | Loading commit data... | |
desig4.C | Loading commit data... | |
desig5.C | Loading commit data... | |
desig6.C | Loading commit data... | |
desig7.C | Loading commit data... | |
desig8.C | Loading commit data... | |
desig9.C | Loading commit data... | |
is-constant-evaluated1.C | Loading commit data... | |
lambda-generic1.C | Loading commit data... | |
lambda-generic2.C | Loading commit data... | |
lambda-generic3.C | Loading commit data... | |
lambda-generic4.C | Loading commit data... | |
lambda-generic5.C | Loading commit data... | |
lambda-this1.C | Loading commit data... | |
lambda-this2.C | Loading commit data... | |
lambda-this3.C | Loading commit data... | |
lambda1.C | Loading commit data... | |
ptrmem1.C | Loading commit data... | |
ptrmem1a.C | Loading commit data... | |
range-for1.C | Loading commit data... | |
range-for10.C | Loading commit data... | |
range-for11.C | Loading commit data... | |
range-for12.C | Loading commit data... | |
range-for13.C | Loading commit data... | |
range-for14.C | Loading commit data... | |
range-for15.C | Loading commit data... | |
range-for16.C | Loading commit data... | |
range-for17.C | Loading commit data... | |
range-for18.C | Loading commit data... | |
range-for2.C | Loading commit data... | |
range-for3.C | Loading commit data... | |
range-for4.C | Loading commit data... | |
range-for5.C | Loading commit data... | |
range-for6.C | Loading commit data... | |
range-for7.C | Loading commit data... | |
range-for8.C | Loading commit data... | |
range-for9.C | Loading commit data... |