From owner-freebsd-bugs Wed Sep 20 11:20: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0AB1A37B424 for ; Wed, 20 Sep 2000 11:20:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id LAA04841; Wed, 20 Sep 2000 11:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 21CFD37B422; Wed, 20 Sep 2000 11:17:01 -0700 (PDT) Message-Id: <20000920181701.21CFD37B422@hub.freebsd.org> Date: Wed, 20 Sep 2000 11:17:01 -0700 (PDT) From: earl_chew@agilent.com To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: i386/21427: g++ barfs on anonymous i386 sigjmp_buf structure Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 21427 >Category: i386 >Synopsis: g++ barfs on anonymous i386 sigjmp_buf structure >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 20 11:20:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Earl Chew >Release: 4.0-RELEASE >Organization: Agilent Technologies >Environment: FreeBSD bna2188.canada.agilent.com 4.0-RELEASE FreeBSD 4.0-RELEASE #0: Mon Mar 2 0 22:50:22 GMT 2000 root@monster.cdrom.com:/usr/src/sys/compile/GENERIC i38 6 >Description: The definition in machine/setjmp.h for i386 is: typedef struct { int _sjb[_JBLEN + 1]; } sigjmp_buf[1]; typedef struct { int _jb[_JBLEN + 1]; } jmp_buf[1]; g++ complains when it cannot resolve the name of the structure. >How-To-Repeat: The following C++ program: #include sigjmp_buf& foo(); produces the following message: foo.cc:3: non-local function `struct {anonymous} (& foo())[1]' uses anonymous ty pe >Fix: typedef struct _sigjmp_buf { int _sjb[_JBLEN + 1]; } sigjmp_buf[1]; typedef struct _jmp_buf { int _jb[_JBLEN + 1]; } jmp_buf[1]; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message