diff options
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r-- | gcc/java/parse.y | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y index d6c597f..65bd091 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -7375,6 +7375,13 @@ declare_local_variables (int modifier, tree type, tree vlist) if (init && java_error_count) init = NULL_TREE; + /* Remember it if this is an initialized-upon-declaration final + variable. */ + if (init && final_p) + { + DECL_LOCAL_FINAL_IUD (decl) = 1; + } + /* Add the initialization function to the current function's code */ if (init) { |