Debian Bug report logs -
#21499
[Fixed in devel snapshot 2.91.45-1] g++ has trouble comparing enum's with STL included
Reported by: Brian White <bcwhite@verisim.com>
Date: Tue, 21 Apr 1998 19:48:03 UTC
Severity: normal
Found in version 2.90.27-0.3
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#21499
; 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.3
When including the STL template classes, g++ gives an error comparing
an enum for inequality. In the following code, if the "#if 0" is
changed to "#if 1" or if the "#include" is removed, then there is
no error.
===============================================================================
#include <vector.h>
int main(int, char**)
{
enum State { a, b, c };
State state = a;
#if 0
if (!(state == b)) {
// something
}
#else
if (state != b) {
// something
}
#endif
}
-------------------------------------------------------------------------------
dragon:~/tmp> c++ -Wall test-g++.cc -o /dev/null
test-g++.cc:14: sorry, not implemented: initializer contains unrecognized tree code
test-g++.cc: In function `int main(int, char **)':
test-g++.cc:14: confused by earlier errors, bailing out
dragon:~/tmp>
===============================================================================
Brian
( bcwhite@verisim.com )
-------------------------------------------------------------------------------
In theory, theory and practice are the same. In practice, they're not.
Information forwarded to debian-bugs-dist@lists.debian.org, Galen Hazelwood <galenh@micron.net>
:
Bug#21499
; 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 21499@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
The following was reported as a bug through the Debian bugtracking system
(http://www.debian.org/Bugs). Please Cc: 21499@bugs.debian.org on on-topic
replies.
The g++ package in the report is egcs's g++ (1.0.2 + patch from
http://www.cygnus.com/ml/egcs/1998-Apr/0614.html).
--
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
[Message part 2 (message/rfc822, inline)]
Package: g++
Version: 2.90.27-0.3
When including the STL template classes, g++ gives an error comparing
an enum for inequality. In the following code, if the "#if 0" is
changed to "#if 1" or if the "#include" is removed, then there is
no error.
===============================================================================
#include <vector.h>
int main(int, char**)
{
enum State { a, b, c };
State state = a;
#if 0
if (!(state == b)) {
// something
}
#else
if (state != b) {
// something
}
#endif
}
-------------------------------------------------------------------------------
dragon:~/tmp> c++ -Wall test-g++.cc -o /dev/null
test-g++.cc:14: sorry, not implemented: initializer contains unrecognized tree code
test-g++.cc: In function `int main(int, char **)':
test-g++.cc:14: confused by earlier errors, bailing out
dragon:~/tmp>
===============================================================================
Brian
( bcwhite@verisim.com )
-------------------------------------------------------------------------------
In theory, theory and practice are the same. In practice, they're not.
--
To UNSUBSCRIBE, email to debian-bugs-dist-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
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).
Forwarded-to-address changed from egcs-bugs@cygnus.com 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 #21 received at 21499-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 22:19:31 2024;
Machine Name:
bembo
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.