re PR c/90677 (gcc-9.1.0 fails to build __gcc_diag__ souce: error: 'cgraph_node'...
authorJakub Jelinek <jakub@redhat.com>
Thu, 2 Jan 2020 17:29:59 +0000 (18:29 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 2 Jan 2020 17:29:59 +0000 (18:29 +0100)
commit4a08009efaaeddde930e20f2669fd542422eec31
treec70f62efc0235587a1554a5e5ec182973f6affde
parentf782b66765c9fccc894fff71a843343ee26ccd50
re PR c/90677 (gcc-9.1.0 fails to build __gcc_diag__ souce: error: 'cgraph_node' is not defined as a type)

PR c/90677
* cp-objcp-common.c (identifier_global_tag): Return NULL_TREE if name
has not been found, rather than error_mark_node.

* c-c++-common/pr90677-2.c: New test.

From-SVN: r279840
gcc/cp/ChangeLog
gcc/cp/cp-objcp-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr90677-2.c [new file with mode: 0644]