diff options
author | Jakub Jelinek <jakub@redhat.com> | 2021-08-10 18:01:23 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2021-08-10 18:06:07 +0200 |
commit | d796cc7a3e719cc36f1851ca322e2877b974691b (patch) | |
tree | 27d456c92397ee9688e49ae9c301b3664b991d0d /gcc/cppdefault.h | |
parent | 84f906df4f0e99b94565f1ca72cf57f63420ad8a (diff) | |
download | gcc-d796cc7a3e719cc36f1851ca322e2877b974691b.zip gcc-d796cc7a3e719cc36f1851ca322e2877b974691b.tar.gz gcc-d796cc7a3e719cc36f1851ca322e2877b974691b.tar.bz2 |
openmp: Fix up cp/parser.c build with GCC 4.8 to 6
Christophe Lyon reported that cp/parser.c no longer compiles with
GCC 4.8.5 after my recent OpenMP changes.
A goto out; there crosses odsd variable declaration, and odsd has
a vec<...> member where vec has = default; default constructor
and gcc before r7-2822-gd0b0fbd9fce2f30a82558bf2308b3a7b56c2f364
treated that as error.
Fixed by moving the declaration earlier before the goto.
Tested on x86_64-linux with GCC 4.8.5 system gcc, committed to trunk
as obvious.
2021-08-10 Jakub Jelinek <jakub@redhat.com>
* parser.c (cp_parser_member_declaration): Move odsd declaration
before cp_parser_using_declaration call to avoid errors with
GCC 4.8 to 6.
Diffstat (limited to 'gcc/cppdefault.h')
0 files changed, 0 insertions, 0 deletions