This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/4043: g++ seg fault with user basic_ostream constructor
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/4043: g++ seg fault with user basic_ostream constructor
- From: rd dot mora at econz dot co dot nz
- Date: 17 Aug 2001 00:11:08 -0000
- Reply-To: rd dot mora at econz dot co dot nz
>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 <rd.mora@econz.co.nz>
>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=