This is the mail archive of the gcc-prs@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++/5252: bus error code generated for non-applicable code



>Number:         5252
>Category:       c++
>Synopsis:       bus error code generated for non-applicable code
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 02 10:46:03 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     thomas@habets.pp.se
>Release:        gcc 3.0.2, from debian 3.0 (woody) g++-3.0.2-4 deb package
>Organization:
>Environment:
debian linux 3.0 (woody) on a sparcstation 4, 48 MB ram.
CPU (from /proc/cpuinfo): Fujitsu  MB86904
>Description:
Attached short code will bus error, even though it shouldn't.
It does work with these environments:
* same box bug with g++ 2.95.4
* another box with solaris 2.5.1 and g++ 2.95.3 and 2.91.60
attached code also at ftp://ftp.nss.nu/pub/test.cc
>How-To-Repeat:
compile and run on a sparc with g++ 3.0.2
$ g++-3.0 -o test test.cc  && ./test
Bus error
$
>Fix:
none
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="test.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.cc"

I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDx0eXBlaW5mbz4KCmNsYXNzIGJheiB7fTsKCnRl
bXBsYXRlPGNsYXNzIFQ+CmNsYXNzIGZ1YyB7CnB1YmxpYzoKCWludCBmb28oVCBiYXIpCgkJewoJ
CQlpZiAodHlwZWlkKGJhcikgPT0gdHlwZWlkKGludCkpIHsKCQkJCXByaW50ZigiaW50XG4iKTsK
CQkJfQoJCQlpZiAodHlwZWlkKGJhcikgPT0gdHlwZWlkKGJheikpIHsKCQkJCXByaW50ZigiYmF6
XG4iKTsKCQkJfQoJCX0KfTsKaW50IG1haW4odm9pZCkKewoJZnVjPGludD4gZnU7CglmdS5mb28o
MSk7Cn0K


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