This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/5108: i'm not sure this should seg fault, even though i admit its not good code...
- From: germain at cs dot utah dot edu
- To: gcc-gnats at gcc dot gnu dot org
- Date: 13 Dec 2001 23:29:04 -0000
- Subject: c++/5108: i'm not sure this should seg fault, even though i admit its not good code...
- Reply-to: germain at cs dot utah dot edu
>Number: 5108
>Category: c++
>Synopsis: i'm not sure this should seg fault, even though i admit its not good code...
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Dec 13 15:36:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: germain@cs.utah.edu
>Release: ugcc version 2.95.1 19990816 (release)
>Organization:
>Environment:
linux?
>Description:
this seg faults. i dont think it should
#include <string>
#include <stdio.h>
string
doit()
{
;
}
int
main()
{
doit();
}
>How-To-Repeat:
compile it
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="temp2.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="temp2.C"
CiNpbmNsdWRlIDxzdHJpbmc+CiNpbmNsdWRlIDxzdGRpby5oPgoKdXNpbmcgbmFtZXNwYWNlIHN0
ZDsKCgpzdHJpbmcKZG9pdCgpCnsKICA7Cn0KCmludAptYWluKCkKewogIGRvaXQoKTsKfQo=