c++/6458: Code segfaults for dynamic allocation, not static

braden@endoframe.com braden@endoframe.com
Thu Apr 25 12:54:00 GMT 2002


>Number:         6458
>Category:       c++
>Synopsis:       Code segfaults for dynamic allocation, not static
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 25 12:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Braden McDaniel
>Release:        3.0.4
>Organization:
>Environment:
Red Hat Linux 7.2
>Description:
When compiled and run, an instance of D can be statically allocated successfully, but not dynamically.
>How-To-Repeat:
I compiled test.cc with no options.
>Fix:

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

Y2xhc3MgQiB7fTsKCmNsYXNzIEEgewpwdWJsaWM6CiAgICBBKEIgJiBiKSB7fQp9OwoKY2xhc3Mg
QzogcHVibGljIHZpcnR1YWwgQSB7CnB1YmxpYzoKICAgIEMoQiAmIGIpOiBBKGIpIHt9Cn07Cgpj
bGFzcyBEOiBwdWJsaWMgdmlydHVhbCBCLCBwdWJsaWMgQyB7CnB1YmxpYzoKICAgIEQoKTogQigp
LCBBKHN0YXRpY19jYXN0PEIgJj4oKnRoaXMpKSwgQyhzdGF0aWNfY2FzdDxCICY+KCp0aGlzKSkg
e30KfTsKCmludCBtYWluKCkgewogICAgRCBkOyAgICAgICAgICAgICAgICAvLyB3b3JrcwogICAg
RCAqIGRfcHRyID0gbmV3IEQ7ICAvLyBzZWdmYXVsdAp9Cg==



More information about the Gcc-bugs mailing list