Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Aug 1999 15:44:42 -0600 (MDT)
From:      "Justin T. Gibbs" <gibbs@narnia.plutotech.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/13383: sys/netinet/in.h violates C++ spec.
Message-ID:  <199908252144.PAA61382@narnia.plutotech.com>

next in thread | raw e-mail | index | archive | help

>Number:         13383
>Category:       bin
>Synopsis:       sys/netinet/in.h violates C++ spec.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 25 15:00:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Justin T. Gibbs
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

	GCC-2.95 compiling a C++ program that plays with TCP/IP
	sockets.

>Description:

	Compiling such a program generates the error:

	ANSI C++ forbids data member `ip_opts' with same name as
	enclosing class

>How-To-Repeat:

	Compile a C++ application that makes use of netinet/in.h.

>Fix:
	
	Rename ip_opts in struct ip_opts to something else.  I have
	no idea what the impact of this change is.

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908252144.PAA61382>