From: "Klaus Kaempf" <Klaus.Kaempf@DITECH.DE>
To: <egcs@cygnus.com>
Subject: Data member with same name as enclosing class
Date: Sun, 31 Jan 1999 23:58:00 -0000 [thread overview]
Message-ID: <000601be4484$9a4900c0$1204a8c0@klausk.ditech.de> (raw)
When compiling Mozilla with egcs-2.93.02 (cvs snapshot from yesterday) I
stumbled across the
following error on RedHat linux 5.1
A c++ file includes "/usr/include/netinet/in.h" with has
extern "C" {
...
struct ip_opts
{
struct in_addr ip_dst;
char ip_opts[40];
}
...
} /* extern "C" */
The c++ compiler stops with "Ansi C++ forbids data member with same name as
enclosing class".
Question is: Should this error message be suppressed for 'extern "C"'
structs or should the
include file be changed ?
next reply other threads:[~1999-01-31 23:58 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-31 23:58 Klaus Kaempf [this message]
[not found] ` <199901202031.VAA00823.cygnus.egcs@mira.isdn.cs.tu-berlin.de>
1999-01-21 1:05 ` Jason Merrill
1999-01-21 15:08 ` Martin v. Loewis
1999-01-21 18:29 ` Jason Merrill
1999-01-31 23:58 ` Jason Merrill
1999-01-31 23:58 ` Martin v. Loewis
1999-01-31 23:58 ` Jason Merrill
1999-01-31 23:58 ` Martin v. Loewis
1999-01-21 8:37 ` Matthias Urlichs
1999-01-21 9:07 ` Gabriel Dos Reis
1999-01-31 23:58 ` Gabriel Dos Reis
1999-01-31 23:58 ` Matthias Urlichs
-- strict thread matches above, loose matches on Subject: below --
1999-01-21 9:14 Klaus Kaempf
1999-01-21 10:56 ` Andi Kleen
1999-01-31 23:58 ` Andi Kleen
[not found] ` <m3d848bgl5.fsf.cygnus.egcs@fred.muc.de>
1999-01-21 12:32 ` Jason Merrill
1999-01-31 23:58 ` Jason Merrill
1999-01-21 15:08 ` Martin v. Loewis
1999-01-31 23:58 ` Martin v. Loewis
1999-01-31 23:58 ` Klaus Kaempf
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='000601be4484$9a4900c0$1204a8c0@klausk.ditech.de' \
--to=klaus.kaempf@ditech.de \
--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).