From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2413 invoked by alias); 5 Feb 2002 22:26:02 -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 2383 invoked by uid 71); 5 Feb 2002 22:26:01 -0000 Resent-Date: 5 Feb 2002 22:26:01 -0000 Resent-Message-ID: <20020205222601.2382.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, binder@iue.tuwien.ac.at Received:(qmail 26544 invoked by uid 61); 5 Feb 2002 22:20:22 -0000 Message-Id:<20020205222022.26543.qmail@sources.redhat.com> Date: Tue, 05 Feb 2002 14:26:00 -0000 From: binder@iue.tuwien.ac.at Reply-To: binder@iue.tuwien.ac.at To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/5595: illegal concstructor invokation X-SW-Source: 2002-02/txt/msg00118.txt.bz2 List-Id: >Number: 5595 >Category: c++ >Synopsis: illegal concstructor invokation >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Tue Feb 05 14:26:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: binder@iue.tuwien.ac.at >Release: Reading specs from /home/binder2/gcc3/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/specs Configured with: ../gcc-3.0.3-src/configure --prefix=/home/binder2/gcc3 --enable-shared --enable-threads=posix Thread model: posix gcc version 3.0.3 >Organization: >Environment: RH-7.2 2.4.17 >Description: g++3 compiles the following code without any complaints. The resulting binary causes a segmentation violation. ------------------------------ #include using namespace std; struct TestConstr { TestConstr(const string str="") { cout << "Str: " << str << endl; } }; int main() { TestConstr tt(false); } ------------------------------ >How-To-Repeat: g++ bug.cc -o bug ./bug >Fix: >Release-Note: >Audit-Trail: >Unformatted: