From mboxrd@z Thu Jan 1 00:00:00 1970 From: rd.mora@econz.co.nz To: gcc-gnats@gcc.gnu.org Subject: c++/4043: g++ seg fault with user basic_ostream constructor Date: Thu, 16 Aug 2001 17:16:00 -0000 Message-id: <20010817001108.9378.qmail@sourceware.cygnus.com> X-SW-Source: 2001-08/msg00448.html List-Id: >Number: 4043 >Category: c++ >Synopsis: g++ seg fault with user basic_ostream constructor >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Aug 16 17:16:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Russell Mora >Release: gcc version 3.0 (russelllinux:~/logstream/src>g++ -v Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0/specs Configured with: /home/russell/Software/gcc-3.0/configure --enable-threads=pthreads Thread model: pthreads gcc ver >Organization: >Environment: russelllinux:~/logstream/src>cat /etc/issue Red Hat Linux release 6.1 (Cartman) Kernel 2.2.12-20 on an i686 russelllinux:~/logstream/src>cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 7 model name : Pentium III (Katmai) stepping : 2 cpu MHz : 515.460487 cache size : 512 KB >Description: g++ seg faults on my simple user basic_ostream example instead of giving an error message. Obviously line 8 should read... : std::basic_ostream< _CharT, _Traits >( 0 ), With this g++ compiles OK. >How-To-Repeat: g++ bug.cpp >Fix: >Release-Note: >Audit-Trail: >Unformatted: sion 3.0) ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="bug.cpp" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="bug.cpp" I2luY2x1ZGUgPGlvc3RyZWFtPgoKdGVtcGxhdGU8IHR5cGVuYW1lIF9DaGFyVCwgdHlwZW5hbWUg X1RyYWl0cyA9IHN0ZDo6Y2hhcl90cmFpdHM8IF9DaGFyVCA+ID4KY2xhc3MgYmFzaWNfb2J1Z19z dHJlYW06IHB1YmxpYyBzdGQ6OmJhc2ljX29zdHJlYW08IF9DaGFyVCwgX1RyYWl0cyA+CnsKcHVi bGljOgogICBiYXNpY19vYnVnX3N0cmVhbSgpCiAgICAgIDogc3RkOjpiYXNpY19vc3RyZWFtKCAw ICksCiAgICAgICAgICAgICBfc3RyZWFtYnVmKCkgICAgCiAgIHsKICAgICAgaW5pdCggJiBfc3Ry ZWFtYnVmICk7CiAgIH07CiAgIH5iYXNpY19vYnVnX3N0cmVhbSgpe307CnByaXZhdGU6CiAgIHN0 ZDo6YmFzaWNfc3RyZWFtYnVmPCBfQ2hhclQsIF9UcmFpdHMgPiBfc3RyZWFtYnVmOwp9Owo=