From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31523 invoked by alias); 24 May 2002 22:56:01 -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 31503 invoked by uid 71); 24 May 2002 22:56:00 -0000 Resent-Date: 24 May 2002 22:56:00 -0000 Resent-Message-ID: <20020524225600.31502.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, alainc__@hotmail.com Received:(qmail 26624 invoked by uid 61); 24 May 2002 22:53:19 -0000 Message-Id:<20020524225319.26623.qmail@sources.redhat.com> Date: Fri, 24 May 2002 18:26:00 -0000 From: alainc__@hotmail.com Reply-To: alainc__@hotmail.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/6805: Stack mess up with overloading a function... X-SW-Source: 2002-05/txt/msg00797.txt.bz2 List-Id: >Number: 6805 >Category: c++ >Synopsis: Stack mess up with overloading a function... >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Fri May 24 15:56:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Stack index defect >Release: unknown-2.95.3 >Organization: >Environment: Linux K6 200mhz kernel 2.2.17 >Description: When you trie to call overload a constructor function like: ACLASS::ACLASS() { ...some code here... } ACLASS::ACLASS(int something) { ...some code here... AFUNCTION(); ...some code here... } the code generated by gcc mess up the stack and call an other function. >How-To-Repeat: >Fix: The idea to avoid that trouble is to create a function that contain the code tant we want to share. >Release-Note: >Audit-Trail: >Unformatted: