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: r279841
+2020-01-02 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/90677
+ * cp-objcp-common.c (identifier_global_tag): Return NULL_TREE if name
+ has not been found, rather than error_mark_node.
+
2019-12-20 Jakub Jelinek <jakub@redhat.com>
Backported from mainline
tree
identifier_global_tag (tree name)
{
- return lookup_qualified_name (global_namespace, name, /*prefer_type*/2,
- /*complain*/false);
+ tree ret = lookup_qualified_name (global_namespace, name, /*prefer_type*/2,
+ /*complain*/false);
+ if (ret == error_mark_node)
+ return NULL_TREE;
+ return ret;
}
/* Register c++-specific dumps. */
+2020-01-02 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/90677
+ * c-c++-common/pr90677-2.c: New test.
+
2019-12-30 Thomas Koenig <tkoenig@gcc.gnu.org>
Backport from trunk
--- /dev/null
+/* PR c/90677 */
+/* { dg-do compile } */
+/* { dg-options "-W -Wall" } */
+
+extern void foo (int, int, const char *, ...)
+ __attribute__ ((__format__ (__gcc_tdiag__, 3, 4)));
+struct cgraph_node;
+extern void bar (struct cgraph_node *);