diff options
author | Alexandre Petit-Bianco <apbianco@cygnus.com> | 1999-10-29 21:32:28 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 1999-10-29 14:32:28 -0700 |
commit | 8119c7200793ac1e1c667f20d948eeffb11996e3 (patch) | |
tree | f110b26dd944208fba93263c42fd9a1371805715 /gcc/java/class.c | |
parent | 7281a327ec04a336a01a3df3164c21516c20f078 (diff) | |
download | gcc-8119c7200793ac1e1c667f20d948eeffb11996e3.zip gcc-8119c7200793ac1e1c667f20d948eeffb11996e3.tar.gz gcc-8119c7200793ac1e1c667f20d948eeffb11996e3.tar.bz2 |
parse.y (expression_statement:): Call function to report improper invocation of a constructor.
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.
From-SVN: r30267
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 df318a0..0333528 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; |