Handle new'ing of Java classes.
authorPer Bothner <bothner@gcc.gnu.org>
Thu, 20 Aug 1998 16:44:03 +0000 (09:44 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Thu, 20 Aug 1998 16:44:03 +0000 (09:44 -0700)
commit6a5c8e422c8e4f2e0acc52aae2a10a83de540fad
tree89f83661b6cded5777b8918be46fa130cc731ef8
parent824f42abafb7f57ac2c25f329640b58eacbd7370
Handle new'ing of Java classes.


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: r21882
gcc/cp/ChangeLog