stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Updated: (STDCXX-306) std::gslice copy assignment inaccessible
Date Mon, 02 Jun 2008 18:15:45 GMT

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

Martin Sebor updated STDCXX-306:
--------------------------------

     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::gslice copy assignment inaccessible
> ----------------------------------------
>
>                 Key: STDCXX-306
>                 URL: https://issues.apache.org/jira/browse/STDCXX-306
>             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
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> The well-formed program below fails to compile because the gslice assignment operator
is inaccessible:
> $ cat x.cpp && make x
> #include <cstddef>
> #include <valarray>
> int main ()
> {
>     std::valarray<std::size_t> va;
>     std::gslice gs (0, va, va);
>     std::gslice_array<std::size_t> gsa = va [gs];
>     gsa = gsa;
> }
> 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   x.cpp
> /build/sebor/dev/stdlib/include/valarray: In function 'int main()':
> /build/sebor/dev/stdlib/include/valarray:1489: error: 'std::gslice_array<_TypeT>&
std::gslice_array<_TypeT>::operator=(const std::gslice_array<_TypeT>&) [with
_TypeT = unsigned int]' is private
> x.cpp:9: error: within this context
> make: *** [x.o] Error 1

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


Mime
View raw message