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/01/19 18:20:30 UTC
[jira] Resolved: (STDCXX-322)
std::complex::operator=(complex) inaccessible
[ https://issues.apache.org/jira/browse/STDCXX-322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Sebor resolved STDCXX-322.
---------------------------------
Resolution: Fixed
Fix Version/s: 4.2
Fixed by the referenced patch. Need to add a test to test suite.
> std::complex<T>::operator=(complex<U>) inaccessible
> ---------------------------------------------------
>
> Key: STDCXX-322
> URL: https://issues.apache.org/jira/browse/STDCXX-322
> Project: C++ Standard Library
> Issue Type: Bug
> Components: 26. Numerics
> Affects Versions: 4.1.3, 4.1.2
> Environment: all
> Reporter: Martin Sebor
> Assigned To: Martin Sebor
> Fix For: 4.2
>
>
> The well-formed program below fails to compile:
> $ cat t.cpp && make t
> #include <complex>
> int main ()
> {
> std::complex<float> a;
> std::complex<double> b;
> a = b;
> }
> eccp -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/dev/stdlib/include -I/build/sebor/eccp-3.8-11s/include -I/build/sebor/dev/stdlib/include/ansi -I/build/sebor/PlumHall/lvs06a/conform -I/build/sebor/PlumHall/lvs06a/dst.3 -A -x --template_directory=/build/sebor/eccp-3.8-11s/lib -g --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815 --diag_suppress 177,381,191,68,550,611,997,549 t.cpp
> "/build/sebor/dev/stdlib/include/complex", line 150: error #265-D: member
> "std::complex<double>::_C_re" (declared at line 280) is inaccessible
> return (_C_re = __rhs._C_re), (_C_im = __rhs._C_im), *this;
> ^
> detected during instantiation of "std::complex<float>
> &std::complex<float>::operator=(const std::complex<_TypeT>
> &) [with _TypeT=double]" at line 8 of "t.cpp"
> "/build/sebor/dev/stdlib/include/complex", line 150: error #265-D: member
> "std::complex<double>::_C_im" (declared at line 280) is inaccessible
> return (_C_re = __rhs._C_re), (_C_im = __rhs._C_im), *this;
> ^
> detected during instantiation of "std::complex<float>
> &std::complex<float>::operator=(const std::complex<_TypeT>
> &) [with _TypeT=double]" at line 8 of "t.cpp"
> 2 errors detected in the compilation of "t.cpp".
> make: *** [t.o] Error 2
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira