[Bug java/18147] Objects in instance initializer blocks are scoped too widely
tromey at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Oct 25 18:55:00 GMT 2004
------- Additional Comments From tromey at gcc dot gnu dot org 2004-10-25 18:55 -------
As a workaround you can put an extra block inside the
instance initializers:
{{ Object foo = ... }}
The bug here seems to be that gcj chains the statements
of each initializer block together when making finit.
Instead, however, it should treat each as a separate
block and chain the blocks together. That is, an
instance initializer block introduces a new scope.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords|rejects-valid |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18147
More information about the Gcc-bugs
mailing list