public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/3625: Segmentation fault, while compiling template source code.
@ 2001-07-09 11:26 drahos
0 siblings, 0 replies; 2+ messages in thread
From: drahos @ 2001-07-09 11:26 UTC (permalink / raw)
To: gcc-gnats; +Cc: drahos
>Number: 3625
>Category: c++
>Synopsis: Segmentation fault, while compiling template source code.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 09 11:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Drahos Cagan
>Release: gcc 3.0
>Organization:
>Environment:
Linux i686, kernel 2.4.5
>Description:
Please find the enclosed demonstration example. If I forget to specify the template types for vector base class, g++ compiler crashes (segmentation fault) without reporting any compiling errors in the source.
>How-To-Repeat:
Simply "g++ -c bug.cpp"
>Fix:
Compiler works fine if I uncomment the template types for the base class (uncomment the section in bug.cpp).
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="bug.cpp"; name="bug.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bug.cpp"
I2luY2x1ZGUgPHZlY3Rvcj4KCnRlbXBsYXRlIDxjbGFzcyBULCBjbGFzcyBBbGxvY2F0b3IgPSBz
dGQ6OmFsbG9jYXRvcjxUPiA+CmNsYXNzIG15X3ZlY3RvciA6IHB1YmxpYyBzdGQ6OnZlY3RvcjxU
LCBBbGxvY2F0b3I+IHsKcHVibGljOgoJbXlfdmVjdG9yKHNpemVfdCBzKTsKfTsKCnRlbXBsYXRl
IDxjbGFzcyBULCBjbGFzcyBBbGxvY2F0b3I+Cm15X3ZlY3RvcjxULCBBbGxvY2F0b3I+OjpteV92
ZWN0b3Ioc2l6ZV90IHMpIDogc3RkOjp2ZWN0b3IvKjxULCBBbGxvY2F0b3I+Ki8ocykKe30K
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/3625: Segmentation fault, while compiling template source code.
@ 2001-08-12 6:00 gdr
0 siblings, 0 replies; 2+ messages in thread
From: gdr @ 2001-08-12 6:00 UTC (permalink / raw)
To: drahos, gcc-bugs, gcc-prs, gdr, nobody
Synopsis: Segmentation fault, while compiling template source code.
Responsible-Changed-From-To: unassigned->gdr
Responsible-Changed-By: gdr
Responsible-Changed-When: Sun Aug 12 06:00:02 2001
Responsible-Changed-Why:
See below.
State-Changed-From-To: open->closed
State-Changed-By: gdr
State-Changed-When: Sun Aug 12 06:00:02 2001
State-Changed-Why:
Confirmed as a bug in GCC-3.0.1. Fixed in GCC-3.1.
-- Gaby
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3625&database=gcc
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-08-12 6:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-09 11:26 c++/3625: Segmentation fault, while compiling template source code drahos
2001-08-12 6:00 gdr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).