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 2006/12/07 00:48:20 UTC
[jira] Created: (STDCXX-306) required std::gslice::operator=()
declared private
required std::gslice::operator=() declared private
--------------------------------------------------
Key: STDCXX-306
URL: http://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
Environment: All
Reporter: Martin Sebor
Assigned To: Martin Sebor
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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (STDCXX-306) required std::gslice::operator=()
declared private
Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/STDCXX-306?page=all ]
Martin Sebor resolved STDCXX-306.
---------------------------------
Fix Version/s: 4.2
Resolution: Fixed
Fixed with the referenced patch.
> required std::gslice::operator=() declared private
> --------------------------------------------------
>
> Key: STDCXX-306
> URL: http://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
> Environment: All
> Reporter: Martin Sebor
> Assigned To: Martin Sebor
> Fix For: 4.2
>
>
> 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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Reopened: (STDCXX-306) required std::gslice::operator=()
declared private
Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Sebor reopened STDCXX-306:
---------------------------------
Darn, somehow, the fix got reverted in a subsequent commit to <valarray>: http://svn.apache.org/viewvc?view=rev&revision=485943
> required std::gslice::operator=() declared private
> --------------------------------------------------
>
> 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
> Environment: All
> Reporter: Martin Sebor
> Assignee: Martin Sebor
> Fix For: 4.2
>
>
> 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.
[jira] Updated: (STDCXX-306) std::gslice copy assignment
inaccessible
Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Sebor updated STDCXX-306:
--------------------------------
Severity: Compiler Error
Fix Version/s: (was: 4.2)
4.2.1
Summary: std::gslice copy assignment inaccessible (was: required std::gslice::operator=() declared private)
As in the case of STDCXX-311, there is a question of the intended semantics of the copy assignment operator (see also http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#621). Deferred until 4.2.1 or until it's been made more clear what the intended semantics should be.
> 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
> Environment: All
> Reporter: Martin Sebor
> Assignee: Martin Sebor
> Fix For: 4.2.1
>
>
> 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.