re PR c++/49838 ([C++0x] ICE in cp_parser_perform_range_for_lookup, at cp/parser...
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 25 Jul 2011 15:29:13 +0000 (15:29 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 25 Jul 2011 15:29:13 +0000 (15:29 +0000)
commitc1703fc185b118903740257c9a8cd6e06fd562f1
treeecb50074ee1739f8bed318cbc90b450c1c3e8faa
parentc2d8a62e2debedf777e53e2206c0a818707571ac
re PR c++/49838 ([C++0x] ICE in cp_parser_perform_range_for_lookup, at cp/parser.c:8796)

/cp
2011-07-25  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/49838
* parser.c (cp_parser_perform_range_for_lookup): Early return if
error_operand_p (range).

/testsuite
2011-07-25  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/49838
* g++.dg/cpp0x/range-for19.C: New.

From-SVN: r176754
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/range-for19.C [new file with mode: 0644]