You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2007/09/22 00:10:50 UTC

[jira] Updated: (STDCXX-570) std::pow(const std::complex&) undefined

     [ https://issues.apache.org/jira/browse/STDCXX-570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor updated STDCXX-570:
--------------------------------

    Affects Version/s:     (was: 4.3)
                       trunk
        Fix Version/s:     (was: 4.2)
                       trunk

This is actually a regression introduced while fixing STDCXX-447:
http://svn.apache.org/viewvc?view=rev&revision=545847

> std::pow(const std::complex&) undefined
> ---------------------------------------
>
>                 Key: STDCXX-570
>                 URL: https://issues.apache.org/jira/browse/STDCXX-570
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 26. Numerics
>    Affects Versions: trunk
>         Environment: EDG eccp 3.9/Solaris, Sun C++ 
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>            Priority: Critical
>             Fix For: trunk
>
>
> The example complex.cpp fails to compile with EDG eccp and link with Sun C++ with the following error(s).
> EDG eccp error:
> eccp -c -I$(TOPDIR)/include/ansi -D_RWSTDDEBUG    -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/examples/include  -A -x --template_directory=$(BUILDDIR)/lib -g   --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815   $(TOPDIR)/examples/manual/complex.cpp
> "$(TOPDIR)/include/complex", line 780: error #821: 
>           extern inline function "std::pow(const std::complex<_TypeT> &, const
>           std::complex<_TypeT> &) [with _TypeT=double]" was referenced but not
>           defined
>   pow (const complex<_TypeT>&, const complex<_TypeT>&);
>   ^
> 1 error detected in the compilation of "$(TOPDIR)/examples/manual/complex.cpp".
> gmake: *** [complex.o] Error 2
> Sun C++ error:
> CC -c -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/examples/include  -library=%none -O  -m64 +w -errtags -erroff=hidef   $(TOPDIR)/examples/manual/complex.cpp
> "$(TOPDIR)/examples/manual/complex.cpp", Error, noinlbody: The function std::pow<double>(const std::complex<double>&, const std::complex<double>&) has not had a body defined.
> 1 Error(s) detected.
> gmake: *** [complex.o] Error 1

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.