From owner-freebsd-bugs Wed Apr 9 04:30:07 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id EAA13669 for bugs-outgoing; Wed, 9 Apr 1997 04:30:07 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id EAA13663; Wed, 9 Apr 1997 04:30:04 -0700 (PDT) Resent-Date: Wed, 9 Apr 1997 04:30:04 -0700 (PDT) Resent-Message-Id: <199704091130.EAA13663@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, watanabe@komadori.earth.s.kobe-u.ac.jp Received: from crayon.earth.s.kobe-u.ac.jp (crayon.earth.s.kobe-u.ac.jp [133.30.50.177]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id EAA13034 for ; Wed, 9 Apr 1997 04:21:49 -0700 (PDT) Received: (from watanabe@localhost) by crayon.earth.s.kobe-u.ac.jp (8.8.5/3.5W-sub) id UAA04670; Wed, 9 Apr 1997 20:21:25 +0900 (JST) Message-Id: <199704091121.UAA04670@crayon.earth.s.kobe-u.ac.jp> Date: Wed, 9 Apr 1997 20:21:25 +0900 (JST) From: watanabe@crayon.earth.s.kobe-u.ac.jp Reply-To: watanabe@komadori.earth.s.kobe-u.ac.jp To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: gnu/3239: libstdc++ has a bug. We cannot treat "Complex addition". Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 3239 >Category: gnu >Synopsis: libstdc++ has a bug. We cannot treat "Complex addition". >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 9 04:30:02 PDT 1997 >Last-Modified: >Originator: Takeshi WATANABE >Organization: Kobe University, Kobe, Japan. >Release: FreeBSD 2.2.1-RELEASE i386 >Environment: 2.2.1-RELEASE >Description: When we compile a C++ source which contains "Complex addition", we cannot find a library "___pl__FRCt7complex1ZdT0". Eg. =-=-=-= #include #include main() { Complex a, b; a = Complex(1,2); b = Complex(2,3); cout << a+b; } =-=-=-= >How-To-Repeat: Always. >Fix: Apply following patch to /usr/src/gnu/lib/libstdc++/Makefile. =-=-=-= 168c168 < .for i in MAIN ADD CC ADDCF ADDFC SUBCC SUBCF SUBFC MULCC MULCF MULFC DIVCC \ --- > .for i in MAIN ADDCC ADDCF ADDFC SUBCC SUBCF SUBFC MULCC MULCF MULFC DIVCC \ 210c210 < .for i in MAIN ADD CC ADDCF ADDFC SUBCC SUBCF SUBFC MULCC MULCF MULFC DIVCC \ --- > .for i in MAIN ADDCC ADDCF ADDFC SUBCC SUBCF SUBFC MULCC MULCF MULFC DIVCC \ 252c252 < .for i in MAIN ADD CC ADDCF ADDFC SUBCC SUBCF SUBFC MULCC MULCF MULFC DIVCC \ --- > .for i in MAIN ADDCC ADDCF ADDFC SUBCC SUBCF SUBFC MULCC MULCF MULFC DIVCC \ =-=-=-= =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Takeshi WATANABE (watanabe@komadori.earth.s.kobe-u.ac.jp) Graduate School of Science and Technology, Kobe University Nada, Kobe 657, Japan >Audit-Trail: >Unformatted: