[Bug c++/30293] [4.0/4.1/4.2/4.3 regression] ICE with extern "Java" in store_init_value
tromey at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Jan 9 18:46:00 GMT 2007
------- Comment #3 from tromey at gcc dot gnu dot org 2007-01-09 18:46 -------
We already only support 'extern "Java"' classes where the body of the
class is written in Java and compiled with gcj. The reason for this is
that a Java class has a lot of required metadata which g++ does not know
how to generate.
So, I think the only truly supported way to make an extern "Java" class is
via gcjh. (Well, plus a couple of special cases in libjava.)
Given this, I think it would be fine to just have a constructor-less
extern "Java" class be a fatal error. The Java compiler will always emit
a default constructor, and hence gcjh-generated headers will always be
correct.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30293
More information about the Gcc-bugs
mailing list