From watanabe@crayon.earth.s.kobe-u.ac.jp  Wed Apr  9 04:21:59 1997
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 <FreeBSD-gnats-submit@freebsd.org>; 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
Subject: libstdc++ has a bug.  We cannot treat "Complex addition".
X-Send-Pr-Version: 3.2

>Number:         3239
>Category:       gnu
>Synopsis:       libstdc++ has a bug.  We cannot treat "Complex addition".
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr  9 04:30:02 PDT 1997
>Closed-Date:    Wed Apr 9 09:00:21 PDT 1997
>Last-Modified:  Wed Apr  9 09:01:03 PDT 1997
>Originator:     Takeshi WATANABE
>Release:        FreeBSD 2.2.1-RELEASE i386
>Organization:
Kobe University, Kobe, Japan.
>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 <Complex.h>
#include <iostream.h>
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
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: peter 
State-Changed-When: Wed Apr 9 09:00:21 PDT 1997 
State-Changed-Why:  
Suggested fix applied, libstdc++/Makefile rev 1.5, thanks! 
>Unformatted:
