You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2008/06/02 20:13:45 UTC

[jira] Updated: (STDCXX-311) std::mask_array copy assignment inaccessible

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

Martin Sebor updated STDCXX-311:
--------------------------------

     Affects Version/s: 4.2.1
    Remaining Estimate: 4h
     Original Estimate: 4h

Added 4.2.1 to the list of affected versions and estimated effort.

> std::mask_array copy assignment inaccessible
> --------------------------------------------
>
>                 Key: STDCXX-311
>                 URL: https://issues.apache.org/jira/browse/STDCXX-311
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 26. Numerics
>    Affects Versions: 4.1.2, 4.1.3, 4.1.4, 4.2.0, 4.2.1
>         Environment: All.
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>             Fix For: 4.3
>
>         Attachments: 26.mask.array.assign.stdcxx-311.cpp, stdcxx-311.patch
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> The well-formed program below fails to compile because the mask_array copy assignment operator is declared private:
> $ cat z.cpp && make z
> #include <valarray>
> int main ()
> {
>     std::valarray<int> va (10);
>     std::mask_array<int> ma (va [std::valarray<bool>(1)]);
>     ma = ma;
> }
> gcc -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG    -D_RWSTD_USE_CONFIG -I/build/sebor/dev/stdlib/include -I/build/sebor/gcc-4.1.0-11s/include -I/build/sebor/dev/stdlib/examples/include  -pedantic -nostdinc++ -g  -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long   z.cpp
> /build/sebor/dev/stdlib/include/valarray: In function 'int main()':
> /build/sebor/dev/stdlib/include/valarray:1079: error: 'std::mask_array<_TypeT>& std::mask_array<_TypeT>::operator=(const std::mask_array<_TypeT>&) [with _TypeT = int]' is private
> z.cpp:7: error: within this context
> make: *** [z.o] Error 1

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