diff options
Diffstat (limited to 'gcc/java/lang.c')
-rw-r--r-- | gcc/java/lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/lang.c b/gcc/java/lang.c index 8992c57a55e..d11cee1915c 100644 --- a/gcc/java/lang.c +++ b/gcc/java/lang.c @@ -413,7 +413,7 @@ put_decl_node (node) } #endif if (TREE_CODE (node) == FUNCTION_DECL - && DECL_NAME (node) == init_identifier_node + && DECL_INIT_P (node) && !DECL_ARTIFICIAL (node) && current_class) put_decl_node (TYPE_NAME (current_class)); else |