From: "B. James Phillippe" <bryan@terran.org>
To: egcs-bugs@cygnus.com, egcs Mailing List <egcs@cygnus.com>
Subject: [1998-04-25] Bug report
Date: Sun, 03 May 1998 14:15:00 -0000 [thread overview]
Message-ID: <Pine.LNX.3.96.980503131144.4530A-100000@earth.terran.org> (raw)
Greetings,
egcs-980425 on x86 linux-2.0.33 glibc (RH5). I discovered this
trying to build qt-1.33. Here is a simplified case:
#include <iostream>
class Foo {
public:
static const int value1;
static const int value2;
static const int value3;
};
typedef Foo ALIAS;
const int ALIAS::value1 = 5;
const int ALIAS::value2 = 10;
const int ALIAS::value3 = ALIAS::value1 | ALIAS::value2;
int main( int, char*[] ) {
ALIAS f;
std::cout << f.value1 << endl;
}
Along with output:
% g++ -o $TMPDIR/test $TMPDIR/test.cc
/home/bryan/tmp/test.cc:13: warning: ANSI C++ does not permit `Foo::value1'
to be defined as `ALIAS::value1'
/home/bryan/tmp/test.cc:14: warning: ANSI C++ does not permit `Foo::value2'
to be defined as `ALIAS::value2'
/home/bryan/tmp/test.cc:14: Internal compiler error.
/home/bryan/tmp/test.cc:14: Please submit a full bug report to
`egcs-bugs@cygnus.com'.
%
Chaning the ALIAS:: to Foo:: cures the problem (and the warning). This
appears to be the proper way to do this anyway.
-bp
--
B. James Phillippe <bryan@terran.org>
Linux Software Engineer, WGT Inc.
http://earth.terran.org/~bryan
reply other threads:[~1998-05-03 14:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.3.96.980503131144.4530A-100000@earth.terran.org \
--to=bryan@terran.org \
--cc=egcs-bugs@cygnus.com \
--cc=egcs@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).