diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2018-05-21 19:25:50 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2018-05-21 19:25:50 +0000 |
commit | 18759120664263a56fa993f5501cbe674383c3ef (patch) | |
tree | 11692eed301ed0825ad27370dcef0b4ccf3c2482 /gcc/fortran/options.c | |
parent | b3229fe17f103d8f1a36f15ab2734361d660b0c8 (diff) | |
download | gcc-18759120664263a56fa993f5501cbe674383c3ef.zip gcc-18759120664263a56fa993f5501cbe674383c3ef.tar.gz gcc-18759120664263a56fa993f5501cbe674383c3ef.tar.bz2 |
re PR c++/84588 (internal compiler error: Segmentation fault (contains_struct_check()))
/cp
2018-05-21 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/84588
* parser.c (cp_parser_maybe_commit_to_declaration,
cp_parser_check_condition_declarator): New.
(cp_parser_simple_declaration): Use the first above.
(cp_parser_condition): Use both the above; enforce
[stmt.stmt]/2 about the declarator not specifying
a function or an array; improve error-recovery.
/testsuite
2018-05-21 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/84588
* g++.dg/cpp0x/cond1.C: New.
* g++.dg/cpp1y/pr84588-1.C: Likewise.
* g++.dg/cpp1y/pr84588-2.C: Likewise.
* g++.dg/cpp1y/pr84588-3.C: Likewise.
* g++.dg/parse/cond6.C: Likewise.
* g++.dg/parse/cond7.C: Likewise.
* g++.dg/parse/cond8.C: Likewise.
* g++.dg/cpp1z/decomp16.C: Update.
* g++.old-deja/g++.jason/cond.C: Likewise.
From-SVN: r260482
Diffstat (limited to 'gcc/fortran/options.c')
0 files changed, 0 insertions, 0 deletions