From owner-freebsd-bugs Thu Oct 7 18:10: 5 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 2BFD1153AB for ; Thu, 7 Oct 1999 18:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id SAA80204; Thu, 7 Oct 1999 18:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Thu, 7 Oct 1999 18:10:02 -0700 (PDT) Message-Id: <199910080110.SAA80204@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Justin T. Gibbs" Subject: Re: bin/13383 sys/netinet/in.h violates C++ spec. Reply-To: "Justin T. Gibbs" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/13383; it has been noted by GNATS. From: "Justin T. Gibbs" To: Jacques Vidrine Cc: gibbs@plutotech.com, freebsd-gnats-submit@freebsd.org Subject: Re: bin/13383 sys/netinet/in.h violates C++ spec. Date: Thu, 07 Oct 1999 19:07:18 -0600 >Ah ha! > >Change "foo.h" to and use ``g++ -I$PWD [...]'' -- the >compilation will complete successfully and without warnings. This doesn't tell the whole story. Look at this: [waterboy::libmci]$ make Mothership.o /build/gibbs/local/bin/g++ -O -pipe -I/usr/local/tcltk/include -I. -I../include -I../../../src/sys -pipe -DPOOLING_ENABLED -I../../include -I../../include/expo rted -g -Wall -DDEBUG=0 -c Mothership.cc -o Mothership.o In file included from Mothership.cc:19: ../../../src/sys/netinet/in.h:291: ANSI C++ forbids data member `ip_opts' with s ame name as enclosing class *** Error code 1 Stop. [waterboy::libmci]$ grep netinet Mothership.cc #include #include This was the original case of the error that caused me to report it. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message