diff options
author | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-29 21:32:28 +0000 |
---|---|---|
committer | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-29 21:32:28 +0000 |
commit | 4cf1f319ee1c05837ec19b917ef47893ffd85c93 (patch) | |
tree | f110b26dd944208fba93263c42fd9a1371805715 /gcc/java/class.c | |
parent | f84cc2c944ed114154fce87caf93c2c1120dff3c (diff) | |
download | ppe42-gcc-4cf1f319ee1c05837ec19b917ef47893ffd85c93.tar.gz ppe42-gcc-4cf1f319ee1c05837ec19b917ef47893ffd85c93.zip |
Fri Oct 29 14:23:32 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (expression_statement:): Call function to report
improper invocation of a constructor.
(parse_ctor_invocation_error): New function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30267 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r-- | gcc/java/class.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c index df318a01004..03335285f41 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -427,10 +427,13 @@ add_method_1 (handle_class, access_flags, name, function_type) if (access_flags & ACC_PUBLIC) METHOD_PUBLIC (fndecl) = 1; if (access_flags & ACC_PROTECTED) METHOD_PROTECTED (fndecl) = 1; - if (access_flags & ACC_PRIVATE) METHOD_PRIVATE (fndecl) = 1; + if (access_flags & ACC_PRIVATE) + METHOD_PRIVATE (fndecl) = DECL_INLINE (fndecl) = 1; if (access_flags & ACC_NATIVE) METHOD_NATIVE (fndecl) = 1; - if (access_flags & ACC_STATIC) METHOD_STATIC (fndecl) = 1; - if (access_flags & ACC_FINAL) METHOD_FINAL (fndecl) = 1; + if (access_flags & ACC_STATIC) + METHOD_STATIC (fndecl) = DECL_INLINE (fndecl) = 1; + if (access_flags & ACC_FINAL) + METHOD_FINAL (fndecl) = DECL_INLINE (fndecl) = 1; if (access_flags & ACC_SYNCHRONIZED) METHOD_SYNCHRONIZED (fndecl) = 1; if (access_flags & ACC_ABSTRACT) METHOD_ABSTRACT (fndecl) = 1; if (access_flags & ACC_TRANSIENT) METHOD_TRANSIENT (fndecl) = 1; |