This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30293] [4.0/4.1/4.2/4.3 regression] ICE with extern "Java" in store_init_value
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jan 2007 18:46:36 -0000
- Subject: [Bug c++/30293] [4.0/4.1/4.2/4.3 regression] ICE with extern "Java" in store_init_value
- References: <bug-30293-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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