Debian Bug report logs -
#21754
[Fixed in devel snapshot 2.91.45-1] egcs g++ has optimizer error
Reported by: Brian White <bcwhite@verisim.com>
Date: Mon, 27 Apr 1998 14:48:01 UTC
Severity: normal
Found in version 2.90.27-0.7
Done: jdassen@wi.leidenuniv.nl
Bug is archived. No further changes may be made.
Forwarded to egcs-bugs@cygnus.com
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Galen Hazelwood <galenh@micron.net>
:
Bug#21754
; Package g++
.
(full text, mbox, link).
Acknowledgement sent to Brian White <bcwhite@verisim.com>
:
New bug report received and forwarded. Copy sent to Galen Hazelwood <galenh@micron.net>
.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: g++
Version: 2.90.27-0.7
When trying to compile using c++ and -O2, I get errors in some very
trivial cases.
===============================================================================
class Pointer {
public:
void malloc(unsigned size, const void* memory=0);
};
class DPointer {
Pointer* dPtr;
public:
void malloc(unsigned size)
{ dPtr->malloc(size); } // line 12
};
-------------------------------------------------------------------------------
c++ -O2 -Wall egcs-bug.cc -o /dev/null
egcs-bug.cc: In method `void DPointer::malloc(unsigned int)':
egcs-bug.cc:12: Internal compiler error.
egcs-bug.cc:12: Please submit a full bug report to `egcs-bugs@cygnus.com'.
Compilation exited abnormally with code 1 at Mon Apr 27 10:18:13
===============================================================================
If I remove the "-O" option, then it compiles okay and runs fine.
Brian
( bcwhite@verisim.com )
-------------------------------------------------------------------------------
Engineering: measure with a micrometer, mark with chalk, cut with an axe
Information forwarded to debian-bugs-dist@lists.debian.org, Galen Hazelwood <galenh@micron.net>
:
Bug#21754
; Package g++
.
(full text, mbox, link).
Acknowledgement sent to jdassen@wi.leidenuniv.nl
:
Extra info received and forwarded to list. Copy sent to Galen Hazelwood <galenh@micron.net>
.
(full text, mbox, link).
Message #10 received at 21754@bugs.debian.org (full text, mbox, reply):
On Mon, Apr 27, 1998 at 10:22:18AM -0400, Brian White wrote:
> Package: g++
> Version: 2.90.27-0.7
I tried with 2.90.28-0.1 (egcs-2.90.28 980423 (egcs-1.0.3 prerelease)).
With that version, the error also occurs with -O.
It does not occur when you use a different name than "malloc" (say "mall).
Ray
--
UNFAIR Term applied to advantages enjoyed by other people which we tried
to cheat them out of and didn't manage. See also DISHONESTY, SNEAKY,
UNDERHAND and JUST LUCKY I GUESS.
- The Hipcrime Vocab by Chad C. Mulligan
Information forwarded to debian-bugs-dist@lists.debian.org, Galen Hazelwood <galenh@micron.net>
:
Bug#21754
; Package g++
.
(full text, mbox, link).
Acknowledgement sent to njs3@doc.ic.ac.uk (Niall Smart)
:
Extra info received and forwarded to list. Copy sent to Galen Hazelwood <galenh@micron.net>
.
(full text, mbox, link).
Message #15 received at 21754@bugs.debian.org (full text, mbox, reply):
On May 29, 1:26pm, jdassen@wi.leidenuniv.nl wrote:
} Subject: [1.0.3a, ss-980502] repeatable C++ problems
> At least the following bugs reports submitted by Debian users still apply to
> egcs 1.0.3a and ss-980502 (I don't have a later snapshot available for
> testing - sorry):
>
> - http://www.debian.org/Bugs/db/21/21754.html (contains recipe code)
> g++ optimizer causes internal compiler error (dependent on member name).
This problem appears to be fixed in the latest snapshot of egcs.
Regards,
Niall
Noted your statement that bug has been forwarded to egcs-bugs@cygnus.com.
Request was from jdassen@wi.leidenuniv.nl
to control@bugs.debian.org
.
(full text, mbox, link).
Changed bug title.
Request was from jdassen@wi.leidenuniv.nl
to control@bugs.debian.org
.
(full text, mbox, link).
Reply sent to jdassen@wi.leidenuniv.nl
:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Brian White <bcwhite@verisim.com>
:
Bug acknowledged by developer.
(full text, mbox, link).
Message #24 received at 21754-done@bugs.debian.org (full text, mbox, reply):
These bugs were no longer reproducable with the earlier pre-1.1 snapshots,
so they should be fixed in Matthias' recent upload.
I'm closing them,
Ray
--
J.H.M. Dassen | RUMOUR Believe all you hear. Your world may
jdassen@wi.LeidenUniv.nl | not be a better one than the one the blocks
| live in but it'll be a sight more vivid.
| - The Hipcrime Vocab by Chad C. Mulligan
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sat May 4 20:06:31 2024;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.