From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8760 invoked by alias); 12 Feb 2002 19:16:06 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 8709 invoked by uid 71); 12 Feb 2002 19:16:03 -0000 Date: Tue, 12 Feb 2002 11:16:00 -0000 Message-ID: <20020212191602.8705.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Todd Stock Subject: Re: java/5668: finit$ not called while using a constructor Reply-To: Todd Stock X-SW-Source: 2002-02/txt/msg00293.txt.bz2 List-Id: The following reply was made to PR java/5668; it has been noted by GNATS. From: Todd Stock To: toddastock@yahoo.com Cc: gcc-gnats@gcc.gnu.org Subject: Re: java/5668: finit$ not called while using a constructor Date: Tue, 12 Feb 2002 11:12:13 -0800 Unidiff for bug 5668: Index: gcc/java/parse.y =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/java/parse.y,v retrieving revision 1.350 diff -u -r1.350 parse.y --- gcc/java/parse.y 4 Feb 2002 02:38:16 -0000 1.350 +++ gcc/java/parse.y 12 Feb 2002 19:09:48 -0000 @@ -10690,9 +10690,11 @@ func = build1 (NOP_EXPR, build_pointer_type (TREE_TYPE (method)), func); } - if (TREE_CODE (patch) == CALL_EXPR) + if (TREE_CODE (patch) == CALL_EXPR) { + int save_can_complete_normal = CAN_COMPLETE_NORMALLY(patch); patch = build_call_or_builtin (method, func, args); - else + CAN_COMPLETE_NORMALLY(patch) = save_can_complete_normal; + } else { TREE_TYPE (patch) = TREE_TYPE (TREE_TYPE (method)); TREE_OPERAND (patch, 0) = func; @@ -12460,6 +12462,7 @@ { tree super_wfl = build_wfl_node (super_identifier_node); tree a = NULL_TREE, t; + CAN_COMPLETE_NORMALLY(super_wfl)=1; /* If we're dealing with an anonymous class, pass the arguments of the crafted constructor along. */ if (ANONYMOUS_CLASS_P (DECL_CONTEXT (mdecl))) @@ -12468,7 +12471,9 @@ for (; t != end_params_node; t = TREE_CHAIN (t)) a = tree_cons (NULL_TREE, build_wfl_node (TREE_PURPOSE (t)), a); } - return build_method_invocation (super_wfl, a); + a=build_method_invocation (super_wfl, a); + CAN_COMPLETE_NORMALLY(a)=1; + return a; } } gcc-gnats@gcc.gnu.org wrote: >Thank you very much for your problem report. >It has the internal identification `java/5668'. >The individual assigned to look at your >report is: unassigned. > >>Category: java >>Responsible: unassigned >>Synopsis: finit$ not called while using a constructor >>Arrival-Date: Tue Feb 12 09:36:00 PST 2002 >> > _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com