c-parser.c (c_parser_translation_unit): Diagnose declare target without corresponding...
authorJakub Jelinek <jakub@redhat.com>
Mon, 11 Nov 2019 20:05:11 +0000 (21:05 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 11 Nov 2019 20:05:11 +0000 (21:05 +0100)
commit7cec95887a274390a45b266622ef15dcb1c2b784
tree4932e3a7837baa63bceafca64a2e7c5a382be778
parent599bd99078439b9f11cb271aa919844318381ec5
c-parser.c (c_parser_translation_unit): Diagnose declare target without corresponding end declare target.

* c-parser.c (c_parser_translation_unit): Diagnose declare target
without corresponding end declare target.

* semantics.c (finish_translation_unit): Diagnose declare target
without corresponding end declare target.

* c-c++-common/gomp/declare-target-5.c: New test.

From-SVN: r278065
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/declare-target-5.c [new file with mode: 0644]