c++/5189: g++ -c bug.cpp crashed on simple stupid file

hkluender@otg.com hkluender@otg.com
Tue Dec 25 11:06:00 GMT 2001


>Number:         5189
>Category:       c++
>Synopsis:       g++ -c bug.cpp crashed on simple stupid file
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 25 11:06:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Hans Klünder
>Release:        3.0.3
>Organization:
>Environment:
Linux 2.2.17 #3
>Description:
A few templates using each other cause g++ to do a "segmentation fault". I guess my code itself has a flaw, just the way the compiler tells this is not very helpful.

I am attaching the source file. It's 13 lines and no include file.
>How-To-Repeat:
g++ -c bug.cpp
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="bug.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bug.cpp"

dGVtcGxhdGUgPCBjbGFzcyBUID4gc3RydWN0IGEgew0KCWlubGluZSBhKCBUICpwICk6IG1fcChw
KSB7IH0NCglpbmxpbmUgYSggYSAmdiApOiBtX3Aodi5tX3ApIHsgfQ0KCVQgKm1fcDsNCn07DQoN
CnRlbXBsYXRlPCBjbGFzcyBUID4gc3RydWN0IGI6IHB1YmxpYyBhPFQ+IHsNCgl0ZW1wbGF0ZTwg
Y2xhc3MgVSA+IGlubGluZSBiKCBVIHcgKTogYTxUPiggdyApIHsgfQ0KfTsNCg0Kc3RhdGljIHZv
aWQgZnVuKCB2b2lkICkgew0KCWI8Y2hhcj4gdiA9IChjaGFyKikwOw0KfQ0K



More information about the Gcc-prs mailing list