This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/30293] [4.0/4.1/4.2/4.3 regression] ICE with extern "Java" in store_init_value



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]