This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/5108: i'm not sure this should seg fault, even though i admit its not good code...



>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=


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]