diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2013-10-04 23:17:51 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2013-10-04 23:17:51 +0000 |
commit | 12f64ca5e16915c6d6b0079b0286cc8e6066975b (patch) | |
tree | 9138155ba25bbedcf3f2d32906fbb306d4014e3f /gcc/regrename.h | |
parent | e36fae42ad580a61208c8c9bb82cc0b5964577b4 (diff) | |
download | gcc-12f64ca5e16915c6d6b0079b0286cc8e6066975b.zip gcc-12f64ca5e16915c6d6b0079b0286cc8e6066975b.tar.gz gcc-12f64ca5e16915c6d6b0079b0286cc8e6066975b.tar.bz2 |
re PR c++/58503 ([c++11] ICE with invalid range in range-based for-loop)
/cp
2013-10-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58503
* parser.c (cp_parser_perform_range_for_lookup): If eventually
either *begin or *end is type-dependent, return NULL_TREE.
(do_range_for_auto_deduction): If cp_parser_perform_range_for_lookup
returns NULL_TREE, don't actually do_auto_deduction.
/testsuite
2013-10-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58503
* g++.dg/cpp0x/range-for26.C: New.
* g++.dg/cpp0x/range-for27.C: Likewise.
From-SVN: r203219
Diffstat (limited to 'gcc/regrename.h')
0 files changed, 0 insertions, 0 deletions