c++/624: symbol multiply defined when compiled with '-O0', <complex>

Andreas.Krakowczyk@fujitsu-siemens.com Andreas.Krakowczyk@fujitsu-siemens.com
Mon Oct 9 06:36:00 GMT 2000


>Number:         624
>Category:       c++
>Synopsis:       symbol multiply defined when compiled with '-O0', <complex>
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 09 06:36:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Andreas.Krakowczyk@fujitsu-siemens.com
>Release:        gcc-2.95.2
>Organization:
>Environment:
mips-sni-sysv4
>Description:
When compiled with '-O0', linker terminates with error
complex<double> conj<double>(complex<double> const &)
multiply defined, also in libstdc++.a(dcomplex.o)

When compiled with '-O', program links fine.
>How-To-Repeat:
g++ -O0 test_001009_1.c; echo $?
g++ -O1 test_001009_1.c; echo $?
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/x-unknown-content-type-C_auto_file; name="test_001009_1.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test_001009_1.c"

I2luY2x1ZGUgPGNvbXBsZXg+CnR5cGVkZWYgc3RkOjpjb21wbGV4PGRvdWJsZT4gRGN4Owp0ZW1w
bGF0ZSBEY3ggc3RkOjpjb25qIDxkb3VibGU+KGNvbnN0IERjeCYpOwppbnQgbWFpbih2b2lkKSB7
fQo=


More information about the Gcc-bugs mailing list