]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/init.c
Handle new'ing of Java classes.
authorPer Bothner <bothner@gcc.gnu.org>
Thu, 20 Aug 1998 16:43:58 +0000 (09:43 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Thu, 20 Aug 1998 16:43:58 +0000 (09:43 -0700)
commit743f140d46759b39745c55bd081b1e92b6335ffc
tree3e43247679622880e247c3fa4cc949fd1bc5729e
parentd35897f502c40ab304aca5159831bd9db62e0cff
Handle new'ing of Java classes.

d
Handle new'ing of Java classes.
* init.c (build_class_classref):  New function.
(build_new_1):  If type is TYPE_FOR_JAVA:  Call _Jv_AllocObject;
constructor does not return this;  don't need to exception-protect.
* pt.c (lookup_template_class):  Copy TYPE_FOR_JAVA flag.
* decl2.c (acceptable_java_type):  Handle template-derived types.

From-SVN: r21879
gcc/cp/init.c