diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2007-03-03 15:32:13 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2007-03-03 15:32:13 +0000 |
commit | 4606b05cd78922cf9b214471c36ef066f3fa9e50 (patch) | |
tree | a37e403d644d8673beafbffae9500ca26a0f8fd2 /libstdc++-v3/include/debug | |
parent | 9f1fd47476f8b7cfb1d14e7409b73b38a892cad3 (diff) | |
download | gcc-4606b05cd78922cf9b214471c36ef066f3fa9e50.zip gcc-4606b05cd78922cf9b214471c36ef066f3fa9e50.tar.gz gcc-4606b05cd78922cf9b214471c36ef066f3fa9e50.tar.bz2 |
re PR c++/15787 (Poor error message with if and blocks)
2007-03-03 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR c++/15787
* parser.c (struct cp_parser): New IN_IF_STMT.
(cp_parser_statement_seq_opt): Handle an unexpected 'else',
returning if parsing the body of an 'if' statement or issuing an
error and continuing.
(cp_parser_selection_statement): Set IN_IF_STMT bit when parsing
body of 'if'.
(cp_parser_jump_statement): Mask new IN_IF_STMT bit.
testsuite/
* g++.dg/parse/else.C: New.
* g++.dg/parse/else-2.C: New.
From-SVN: r122505
Diffstat (limited to 'libstdc++-v3/include/debug')
0 files changed, 0 insertions, 0 deletions