Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Apr 1997 20:21:25 +0900 (JST)
From:      watanabe@crayon.earth.s.kobe-u.ac.jp
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   gnu/3239: libstdc++ has a bug.  We cannot treat "Complex addition".
Message-ID:  <199704091121.UAA04670@crayon.earth.s.kobe-u.ac.jp>
Resent-Message-ID: <199704091130.EAA13663@freefall.freebsd.org>

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

>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 <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
>Audit-Trail:
>Unformatted:



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