You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@stdcxx.apache.org by "Scott (Yu) Zhong (JIRA)" <ji...@apache.org> on 2008/03/17 20:10:24 UTC
[jira] Created: (STDCXX-781) [HP aCC 6.16] warning #20206-D: Out of
bound access in _traits.h
[HP aCC 6.16] warning #20206-D: Out of bound access in _traits.h
----------------------------------------------------------------
Key: STDCXX-781
URL: https://issues.apache.org/jira/browse/STDCXX-781
Project: C++ Standard Library
Issue Type: Sub-task
Components: Tests
Affects Versions: 4.2.0
Environment: $ uname -sr && aCC -V
HP-UX B.11.31
aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
Reporter: Scott (Yu) Zhong
Fix For: 4.2.1
"/amd/devco/scottz/stdcxx/4.2.x/tests/include/rw_streambuf.h", line 471, procedure setbuf: warning #20206-D: Out of bound access (In expression "&this->ncalls_[(long long)<compiler temporary>_d]", this->ncalls_ (type: int [11]) has element range [0 .. 10], writing element range [0 .. 31].)
"/amd/devco/scottz/stdcxx/4.2.x/tests/include/rw_streambuf.h", line 473, procedure setbuf: warning #20206-D: Out of bound access (In expression "&this->ncalls_[(long long)<compiler temporary>_d]", this->ncalls_ (type: int [11]) has element range [0 .. 10], reading element range [0 .. 31].)
"/amd/devco/scottz/stdcxx/4.2.x/tests/include/rw_streambuf.h", line 480, procedure setbuf: warning #20206-D: Out of bound access (In expression "&this->throw_when_[(long long)<compiler temporary>_d]", this->throw_when_ (type: int [11]) has element range [0 .. 10], reading element range [0 .. 31].)
"/amd/devco/scottz/stdcxx/4.2.x/tests/include/rw_streambuf.h", line 484, procedure setbuf: warning #20206-D: Out of bound access (In expression "&streambuf_func_names[(long long)<compiler temporary>_d]", array "streambuf_func_names" [/amd/devco/scottz/stdcxx/4.2.x/tests/include/rw_streambuf.h:60] (type: const char* [11]) has element range [0 .. 10], reading element range [0 .. 31].)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (STDCXX-781) [HP aCC 6.16] warning #20206-D: Out of
bound access in _traits.h
Posted by "Scott (Yu) Zhong (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott (Yu) Zhong updated STDCXX-781:
------------------------------------
Description:
"/amd/devco/scottz/stdcxx/4.2.x/include/rw/_traits.h", line 295, procedure main: warning #20206-D: Out of bound access (In expression "&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) has byte range [0 .. 23], reading byte range [24 .. 47].)
was:
"/amd/devco/scottz/stdcxx/4.2.x/tests/include/rw_streambuf.h", line 471, procedure setbuf: warning #20206-D: Out of bound access (In expression "&this->ncalls_[(long long)<compiler temporary>_d]", this->ncalls_ (type: int [11]) has element range [0 .. 10], writing element range [0 .. 31].)
"/amd/devco/scottz/stdcxx/4.2.x/tests/include/rw_streambuf.h", line 473, procedure setbuf: warning #20206-D: Out of bound access (In expression "&this->ncalls_[(long long)<compiler temporary>_d]", this->ncalls_ (type: int [11]) has element range [0 .. 10], reading element range [0 .. 31].)
"/amd/devco/scottz/stdcxx/4.2.x/tests/include/rw_streambuf.h", line 480, procedure setbuf: warning #20206-D: Out of bound access (In expression "&this->throw_when_[(long long)<compiler temporary>_d]", this->throw_when_ (type: int [11]) has element range [0 .. 10], reading element range [0 .. 31].)
"/amd/devco/scottz/stdcxx/4.2.x/tests/include/rw_streambuf.h", line 484, procedure setbuf: warning #20206-D: Out of bound access (In expression "&streambuf_func_names[(long long)<compiler temporary>_d]", array "streambuf_func_names" [/amd/devco/scottz/stdcxx/4.2.x/tests/include/rw_streambuf.h:60] (type: const char* [11]) has element range [0 .. 10], reading element range [0 .. 31].)
> [HP aCC 6.16] warning #20206-D: Out of bound access in _traits.h
> ----------------------------------------------------------------
>
> Key: STDCXX-781
> URL: https://issues.apache.org/jira/browse/STDCXX-781
> Project: C++ Standard Library
> Issue Type: Sub-task
> Components: Tests
> Affects Versions: 4.2.0
> Environment: $ uname -sr && aCC -V
> HP-UX B.11.31
> aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
> Reporter: Scott (Yu) Zhong
> Fix For: 4.2.1
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> "/amd/devco/scottz/stdcxx/4.2.x/include/rw/_traits.h", line 295, procedure main: warning #20206-D: Out of bound access (In expression "&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) has byte range [0 .. 23], reading byte range [24 .. 47].)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (STDCXX-781) [HP aCC 6.16] warning #20206-D: Out of
bound access and #20208-D: Forming out of bound address in _traits.h
Posted by "Scott (Yu) Zhong (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott (Yu) Zhong updated STDCXX-781:
------------------------------------
Description:
"/amd/devco/scottz/stdcxx/4.2.x/include/rw/_traits.h", line 295, procedure main: warning #20206-D: Out of bound access (In expression "&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)- ><compiler generated undef>_0+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)- ><compiler generated undef>_0 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) has byte range [0 .. 23], reading byte range [24 .. 47].)
"/amd/devco/scottz/stdcxx/4.2.x/include/rw/_traits.h", line 314, procedure main: warning #20208-D: Forming out of bound address (In expression "(const int*)(&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref) - ><compiler generated undef>_0+1)+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)- > <compiler generated undef>_0+1 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) (defined by &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0) has byte range [0 .. 23], forming address byte range [28 .. 31].)
was:
"/amd/devco/scottz/stdcxx/4.2.x/include/rw/_traits.h", line 295, procedure main: warning #20206-D: Out of bound access (In expression "&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)- ><compiler generated undef>_0 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) has byte range [0 .. 23], reading byte range [24 .. 47].)
"/amd/devco/scottz/stdcxx/4.2.x/include/rw/_traits.h", line 314, procedure main: warning #20208-D: Forming out of bound address (In expression "(const int*)(&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref) - ><compiler generated undef>_0+1)+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)- > <compiler generated undef>_0+1 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) (defined by &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0) has byte range [0 .. 23], forming address byte range [28 .. 31].)
> [HP aCC 6.16] warning #20206-D: Out of bound access and #20208-D: Forming out of bound address in _traits.h
> -----------------------------------------------------------------------------------------------------------
>
> Key: STDCXX-781
> URL: https://issues.apache.org/jira/browse/STDCXX-781
> Project: C++ Standard Library
> Issue Type: Sub-task
> Components: Tests
> Affects Versions: 4.2.0
> Environment: $ uname -sr && aCC -V
> HP-UX B.11.31
> aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
> Reporter: Scott (Yu) Zhong
> Fix For: 4.2.1
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> "/amd/devco/scottz/stdcxx/4.2.x/include/rw/_traits.h", line 295, procedure main: warning #20206-D: Out of bound access (In expression "&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)- ><compiler generated undef>_0+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)- ><compiler generated undef>_0 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) has byte range [0 .. 23], reading byte range [24 .. 47].)
> "/amd/devco/scottz/stdcxx/4.2.x/include/rw/_traits.h", line 314, procedure main: warning #20208-D: Forming out of bound address (In expression "(const int*)(&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref) - ><compiler generated undef>_0+1)+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)- > <compiler generated undef>_0+1 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) (defined by &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0) has byte range [0 .. 23], forming address byte range [28 .. 31].)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (STDCXX-781) [HP aCC 6.16] warning #20206-D: Out of
bound access and #20208-D: Forming out of bound address in _traits.h
Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Sebor updated STDCXX-781:
--------------------------------
Component/s: (was: Tests)
21. Strings
Description:
When compiled with HP aCC 6.16 with +w +O, the test [23.bitset.cons.stdcxx-297.cpp|http://svn.apache.org/repos/asf/stdcxx/trunk/tests/containers/23.bitset.cons.cpp] produces the following warning out of the [_traits.h|http://svn.apache.org/repos/asf/stdcxx/trunk/include/rw/_traits.h] header:
{noformat}
aCC -c -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include -AA +O2 +DD64 +w \
+W392 +W655 +W684 +W818 +W819 +W849 +W2193 +W2236 +W2261 +W2340 +W2401 +W2487 +W4227 \
+W4229 +W4231 +W4235 +W4237 +W4249 +W4255 +W4272 +W4284 +W4285 +W4286 +W4296 +W4297 +W3348 \
$(TOPDIR)/tests/regress/23.bitset.cons.stdcxx-297.cpp
"$(TOPDIR)/include/string", line 842: warning #4232-D: conversion from "int *" to a more strictly aligned type "__rw::__string_ref<int, std::char_traits<int>, std::allocator<int>> *" may cause misaligned access
return _RWSTD_REINTERPRET_CAST (_C_string_ref_type*, _C_data) - 1;
^
detected during:
instantiation of "__rw::__string_ref<_Traits::char_type, _Traits, _Allocator> *std::basic_string<_CharT, _Traits, _Allocator>::_C_pref() const [with _CharT=int, _Traits=std::char_traits<int>, _Allocator=std::allocator<int>]" at line 899
instantiation of "void std::basic_string<_CharT, _Traits, _Allocator>::_C_unlink(_Allocator::pointer) [with _CharT=int, _Traits=std::char_traits<int>, _Allocator=std::allocator<int>]" at line 198
instantiation of "std::basic_string<_CharT, _Traits, _Allocator>::~basic_string() [with _CharT=int, _Traits=std::char_traits<int>, _Allocator=std::allocator<int>]" at line 42 of "$(TOPDIR)/tests/regress/23.bitset.cons.stdcxx-297.cpp"
"$(TOPDIR)/include/rw/_traits.h", line 333, procedure main: warning #20208-D: Forming out of bound address (In expression "(const int*)(&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1)+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) (defined by &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0) has byte range [0 .. 23], forming address byte range [28 .. 31].)
"$(TOPDIR)/include/rw/_traits.h", line 314, procedure main: warning #20206-D: Out of bound access (In expression "&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) has byte range [0 .. 23], reading byte range [24 .. 47].)
{noformat}
was:
"/amd/devco/scottz/stdcxx/4.2.x/include/rw/_traits.h", line 295, procedure main: warning #20206-D: Out of bound access (In expression "&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)- ><compiler generated undef>_0+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)- ><compiler generated undef>_0 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) has byte range [0 .. 23], reading byte range [24 .. 47].)
"/amd/devco/scottz/stdcxx/4.2.x/include/rw/_traits.h", line 314, procedure main: warning #20208-D: Forming out of bound address (In expression "(const int*)(&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref) - ><compiler generated undef>_0+1)+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)- > <compiler generated undef>_0+1 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) (defined by &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0) has byte range [0 .. 23], forming address byte range [28 .. 31].)
Added context, including the command line, to the Description.
Set the correct Component/s.
> [HP aCC 6.16] warning #20206-D: Out of bound access and #20208-D: Forming out of bound address in _traits.h
> -----------------------------------------------------------------------------------------------------------
>
> Key: STDCXX-781
> URL: https://issues.apache.org/jira/browse/STDCXX-781
> Project: C++ Standard Library
> Issue Type: Sub-task
> Components: 21. Strings
> Affects Versions: 4.2.0
> Environment: $ uname -sr && aCC -V
> HP-UX B.11.31
> aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
> Reporter: Scott (Yu) Zhong
> Fix For: 4.2.1
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> When compiled with HP aCC 6.16 with +w +O, the test [23.bitset.cons.stdcxx-297.cpp|http://svn.apache.org/repos/asf/stdcxx/trunk/tests/containers/23.bitset.cons.cpp] produces the following warning out of the [_traits.h|http://svn.apache.org/repos/asf/stdcxx/trunk/include/rw/_traits.h] header:
> {noformat}
> aCC -c -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include -AA +O2 +DD64 +w \
> +W392 +W655 +W684 +W818 +W819 +W849 +W2193 +W2236 +W2261 +W2340 +W2401 +W2487 +W4227 \
> +W4229 +W4231 +W4235 +W4237 +W4249 +W4255 +W4272 +W4284 +W4285 +W4286 +W4296 +W4297 +W3348 \
> $(TOPDIR)/tests/regress/23.bitset.cons.stdcxx-297.cpp
> "$(TOPDIR)/include/string", line 842: warning #4232-D: conversion from "int *" to a more strictly aligned type "__rw::__string_ref<int, std::char_traits<int>, std::allocator<int>> *" may cause misaligned access
> return _RWSTD_REINTERPRET_CAST (_C_string_ref_type*, _C_data) - 1;
> ^
> detected during:
> instantiation of "__rw::__string_ref<_Traits::char_type, _Traits, _Allocator> *std::basic_string<_CharT, _Traits, _Allocator>::_C_pref() const [with _CharT=int, _Traits=std::char_traits<int>, _Allocator=std::allocator<int>]" at line 899
> instantiation of "void std::basic_string<_CharT, _Traits, _Allocator>::_C_unlink(_Allocator::pointer) [with _CharT=int, _Traits=std::char_traits<int>, _Allocator=std::allocator<int>]" at line 198
> instantiation of "std::basic_string<_CharT, _Traits, _Allocator>::~basic_string() [with _CharT=int, _Traits=std::char_traits<int>, _Allocator=std::allocator<int>]" at line 42 of "$(TOPDIR)/tests/regress/23.bitset.cons.stdcxx-297.cpp"
> "$(TOPDIR)/include/rw/_traits.h", line 333, procedure main: warning #20208-D: Forming out of bound address (In expression "(const int*)(&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1)+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) (defined by &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0) has byte range [0 .. 23], forming address byte range [28 .. 31].)
> "$(TOPDIR)/include/rw/_traits.h", line 314, procedure main: warning #20206-D: Out of bound access (In expression "&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) has byte range [0 .. 23], reading byte range [24 .. 47].)
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (STDCXX-781) [HP aCC 6.16] out of bound warnings
20206 and 20208 in 23.bitset.cons.stdcxx-297.cpp
Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Sebor updated STDCXX-781:
--------------------------------
Description:
When compiled with HP aCC 6.16 with +w +O, the test [23.bitset.cons.stdcxx-297.cpp|http://svn.apache.org/repos/asf/stdcxx/trunk/tests/containers/23.bitset.cons.stdcxx-297.cpp] produces the following warning out of the [_traits.h|http://svn.apache.org/repos/asf/stdcxx/trunk/include/rw/_traits.h] header:
{noformat}
aCC -c -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include -AA +O2 +DD64 +w \
+W392 +W655 +W684 +W818 +W819 +W849 +W2193 +W2236 +W2261 +W2340 +W2401 +W2487 +W4227 \
+W4229 +W4231 +W4235 +W4237 +W4249 +W4255 +W4272 +W4284 +W4285 +W4286 +W4296 +W4297 +W3348 \
$(TOPDIR)/tests/regress/23.bitset.cons.stdcxx-297.cpp
"$(TOPDIR)/include/string", line 842: warning #4232-D: conversion from "int *" to a more strictly aligned type "__rw::__string_ref<int, std::char_traits<int>, std::allocator<int>> *" may cause misaligned access
return _RWSTD_REINTERPRET_CAST (_C_string_ref_type*, _C_data) - 1;
^
detected during:
instantiation of "__rw::__string_ref<_Traits::char_type, _Traits, _Allocator> *std::basic_string<_CharT, _Traits, _Allocator>::_C_pref() const [with _CharT=int, _Traits=std::char_traits<int>, _Allocator=std::allocator<int>]" at line 899
instantiation of "void std::basic_string<_CharT, _Traits, _Allocator>::_C_unlink(_Allocator::pointer) [with _CharT=int, _Traits=std::char_traits<int>, _Allocator=std::allocator<int>]" at line 198
instantiation of "std::basic_string<_CharT, _Traits, _Allocator>::~basic_string() [with _CharT=int, _Traits=std::char_traits<int>, _Allocator=std::allocator<int>]" at line 42 of "$(TOPDIR)/tests/regress/23.bitset.cons.stdcxx-297.cpp"
"$(TOPDIR)/include/rw/_traits.h", line 333, procedure main: warning #20208-D: Forming out of bound address (In expression "(const int*)(&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1)+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) (defined by &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0) has byte range [0 .. 23], forming address byte range [28 .. 31].)
"$(TOPDIR)/include/rw/_traits.h", line 314, procedure main: warning #20206-D: Out of bound access (In expression "&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) has byte range [0 .. 23], reading byte range [24 .. 47].)
{noformat}
was:
When compiled with HP aCC 6.16 with +w +O, the test [23.bitset.cons.stdcxx-297.cpp|http://svn.apache.org/repos/asf/stdcxx/trunk/tests/containers/23.bitset.cons.cpp] produces the following warning out of the [_traits.h|http://svn.apache.org/repos/asf/stdcxx/trunk/include/rw/_traits.h] header:
{noformat}
aCC -c -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include -AA +O2 +DD64 +w \
+W392 +W655 +W684 +W818 +W819 +W849 +W2193 +W2236 +W2261 +W2340 +W2401 +W2487 +W4227 \
+W4229 +W4231 +W4235 +W4237 +W4249 +W4255 +W4272 +W4284 +W4285 +W4286 +W4296 +W4297 +W3348 \
$(TOPDIR)/tests/regress/23.bitset.cons.stdcxx-297.cpp
"$(TOPDIR)/include/string", line 842: warning #4232-D: conversion from "int *" to a more strictly aligned type "__rw::__string_ref<int, std::char_traits<int>, std::allocator<int>> *" may cause misaligned access
return _RWSTD_REINTERPRET_CAST (_C_string_ref_type*, _C_data) - 1;
^
detected during:
instantiation of "__rw::__string_ref<_Traits::char_type, _Traits, _Allocator> *std::basic_string<_CharT, _Traits, _Allocator>::_C_pref() const [with _CharT=int, _Traits=std::char_traits<int>, _Allocator=std::allocator<int>]" at line 899
instantiation of "void std::basic_string<_CharT, _Traits, _Allocator>::_C_unlink(_Allocator::pointer) [with _CharT=int, _Traits=std::char_traits<int>, _Allocator=std::allocator<int>]" at line 198
instantiation of "std::basic_string<_CharT, _Traits, _Allocator>::~basic_string() [with _CharT=int, _Traits=std::char_traits<int>, _Allocator=std::allocator<int>]" at line 42 of "$(TOPDIR)/tests/regress/23.bitset.cons.stdcxx-297.cpp"
"$(TOPDIR)/include/rw/_traits.h", line 333, procedure main: warning #20208-D: Forming out of bound address (In expression "(const int*)(&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1)+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) (defined by &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0) has byte range [0 .. 23], forming address byte range [28 .. 31].)
"$(TOPDIR)/include/rw/_traits.h", line 314, procedure main: warning #20206-D: Out of bound access (In expression "&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) has byte range [0 .. 23], reading byte range [24 .. 47].)
{noformat}
Priority: Minor (was: Major)
Fix Version/s: (was: 4.2.1)
4.2.2
Summary: [HP aCC 6.16] out of bound warnings 20206 and 20208 in 23.bitset.cons.stdcxx-297.cpp (was: [HP aCC 6.16] warning #20206-D: Out of bound access and #20208-D: Forming out of bound address in _traits.h)
This is specific to the {{23.bitset.cons.stdcxx-297.cpp}} regression test which for some reason uses the {{std::basic_string<char>}} specialization.
Updated Summary, lowered Priority to Minor, and deferred until 4.2.2.
> [HP aCC 6.16] out of bound warnings 20206 and 20208 in 23.bitset.cons.stdcxx-297.cpp
> ------------------------------------------------------------------------------------
>
> Key: STDCXX-781
> URL: https://issues.apache.org/jira/browse/STDCXX-781
> Project: C++ Standard Library
> Issue Type: Sub-task
> Components: 21. Strings
> Affects Versions: 4.2.0
> Environment: $ uname -sr && aCC -V
> HP-UX B.11.31
> aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
> Reporter: Scott (Yu) Zhong
> Assignee: Martin Sebor
> Priority: Minor
> Fix For: 4.2.2
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> When compiled with HP aCC 6.16 with +w +O, the test [23.bitset.cons.stdcxx-297.cpp|http://svn.apache.org/repos/asf/stdcxx/trunk/tests/containers/23.bitset.cons.stdcxx-297.cpp] produces the following warning out of the [_traits.h|http://svn.apache.org/repos/asf/stdcxx/trunk/include/rw/_traits.h] header:
> {noformat}
> aCC -c -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include -AA +O2 +DD64 +w \
> +W392 +W655 +W684 +W818 +W819 +W849 +W2193 +W2236 +W2261 +W2340 +W2401 +W2487 +W4227 \
> +W4229 +W4231 +W4235 +W4237 +W4249 +W4255 +W4272 +W4284 +W4285 +W4286 +W4296 +W4297 +W3348 \
> $(TOPDIR)/tests/regress/23.bitset.cons.stdcxx-297.cpp
> "$(TOPDIR)/include/string", line 842: warning #4232-D: conversion from "int *" to a more strictly aligned type "__rw::__string_ref<int, std::char_traits<int>, std::allocator<int>> *" may cause misaligned access
> return _RWSTD_REINTERPRET_CAST (_C_string_ref_type*, _C_data) - 1;
> ^
> detected during:
> instantiation of "__rw::__string_ref<_Traits::char_type, _Traits, _Allocator> *std::basic_string<_CharT, _Traits, _Allocator>::_C_pref() const [with _CharT=int, _Traits=std::char_traits<int>, _Allocator=std::allocator<int>]" at line 899
> instantiation of "void std::basic_string<_CharT, _Traits, _Allocator>::_C_unlink(_Allocator::pointer) [with _CharT=int, _Traits=std::char_traits<int>, _Allocator=std::allocator<int>]" at line 198
> instantiation of "std::basic_string<_CharT, _Traits, _Allocator>::~basic_string() [with _CharT=int, _Traits=std::char_traits<int>, _Allocator=std::allocator<int>]" at line 42 of "$(TOPDIR)/tests/regress/23.bitset.cons.stdcxx-297.cpp"
> "$(TOPDIR)/include/rw/_traits.h", line 333, procedure main: warning #20208-D: Forming out of bound address (In expression "(const int*)(&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1)+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) (defined by &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0) has byte range [0 .. 23], forming address byte range [28 .. 31].)
> "$(TOPDIR)/include/rw/_traits.h", line 314, procedure main: warning #20206-D: Out of bound access (In expression "&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) has byte range [0 .. 23], reading byte range [24 .. 47].)
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (STDCXX-781) [HP aCC 6.16] warning #20206-D: Out
of bound access and #20208-D: Forming out of bound address in _traits.h
Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Sebor reassigned STDCXX-781:
-----------------------------------
Assignee: Martin Sebor
> [HP aCC 6.16] warning #20206-D: Out of bound access and #20208-D: Forming out of bound address in _traits.h
> -----------------------------------------------------------------------------------------------------------
>
> Key: STDCXX-781
> URL: https://issues.apache.org/jira/browse/STDCXX-781
> Project: C++ Standard Library
> Issue Type: Sub-task
> Components: 21. Strings
> Affects Versions: 4.2.0
> Environment: $ uname -sr && aCC -V
> HP-UX B.11.31
> aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
> Reporter: Scott (Yu) Zhong
> Assignee: Martin Sebor
> Fix For: 4.2.1
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> When compiled with HP aCC 6.16 with +w +O, the test [23.bitset.cons.stdcxx-297.cpp|http://svn.apache.org/repos/asf/stdcxx/trunk/tests/containers/23.bitset.cons.cpp] produces the following warning out of the [_traits.h|http://svn.apache.org/repos/asf/stdcxx/trunk/include/rw/_traits.h] header:
> {noformat}
> aCC -c -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include -AA +O2 +DD64 +w \
> +W392 +W655 +W684 +W818 +W819 +W849 +W2193 +W2236 +W2261 +W2340 +W2401 +W2487 +W4227 \
> +W4229 +W4231 +W4235 +W4237 +W4249 +W4255 +W4272 +W4284 +W4285 +W4286 +W4296 +W4297 +W3348 \
> $(TOPDIR)/tests/regress/23.bitset.cons.stdcxx-297.cpp
> "$(TOPDIR)/include/string", line 842: warning #4232-D: conversion from "int *" to a more strictly aligned type "__rw::__string_ref<int, std::char_traits<int>, std::allocator<int>> *" may cause misaligned access
> return _RWSTD_REINTERPRET_CAST (_C_string_ref_type*, _C_data) - 1;
> ^
> detected during:
> instantiation of "__rw::__string_ref<_Traits::char_type, _Traits, _Allocator> *std::basic_string<_CharT, _Traits, _Allocator>::_C_pref() const [with _CharT=int, _Traits=std::char_traits<int>, _Allocator=std::allocator<int>]" at line 899
> instantiation of "void std::basic_string<_CharT, _Traits, _Allocator>::_C_unlink(_Allocator::pointer) [with _CharT=int, _Traits=std::char_traits<int>, _Allocator=std::allocator<int>]" at line 198
> instantiation of "std::basic_string<_CharT, _Traits, _Allocator>::~basic_string() [with _CharT=int, _Traits=std::char_traits<int>, _Allocator=std::allocator<int>]" at line 42 of "$(TOPDIR)/tests/regress/23.bitset.cons.stdcxx-297.cpp"
> "$(TOPDIR)/include/rw/_traits.h", line 333, procedure main: warning #20208-D: Forming out of bound address (In expression "(const int*)(&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1)+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) (defined by &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0) has byte range [0 .. 23], forming address byte range [28 .. 31].)
> "$(TOPDIR)/include/rw/_traits.h", line 314, procedure main: warning #20206-D: Out of bound access (In expression "&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) has byte range [0 .. 23], reading byte range [24 .. 47].)
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (STDCXX-781) [HP aCC 6.16] warning #20206-D: Out of
bound access and #20208-D: Forming out of bound address in _traits.h
Posted by "Scott (Yu) Zhong (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott (Yu) Zhong updated STDCXX-781:
------------------------------------
Description:
"/amd/devco/scottz/stdcxx/4.2.x/include/rw/_traits.h", line 295, procedure main: warning #20206-D: Out of bound access (In expression "&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)- ><compiler generated undef>_0 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) has byte range [0 .. 23], reading byte range [24 .. 47].)
"/amd/devco/scottz/stdcxx/4.2.x/include/rw/_traits.h", line 314, procedure main: warning #20208-D: Forming out of bound address (In expression "(const int*)(&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref) - ><compiler generated undef>_0+1)+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)- > <compiler generated undef>_0+1 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) (defined by &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0) has byte range [0 .. 23], forming address byte range [28 .. 31].)
was:
"/amd/devco/scottz/stdcxx/4.2.x/include/rw/_traits.h", line 295, procedure main: warning #20206-D: Out of bound access (In expression "&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) has byte range [0 .. 23], reading byte range [24 .. 47].)
Summary: [HP aCC 6.16] warning #20206-D: Out of bound access and #20208-D: Forming out of bound address in _traits.h (was: [HP aCC 6.16] warning #20206-D: Out of bound access in _traits.h)
> [HP aCC 6.16] warning #20206-D: Out of bound access and #20208-D: Forming out of bound address in _traits.h
> -----------------------------------------------------------------------------------------------------------
>
> Key: STDCXX-781
> URL: https://issues.apache.org/jira/browse/STDCXX-781
> Project: C++ Standard Library
> Issue Type: Sub-task
> Components: Tests
> Affects Versions: 4.2.0
> Environment: $ uname -sr && aCC -V
> HP-UX B.11.31
> aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
> Reporter: Scott (Yu) Zhong
> Fix For: 4.2.1
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> "/amd/devco/scottz/stdcxx/4.2.x/include/rw/_traits.h", line 295, procedure main: warning #20206-D: Out of bound access (In expression "&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)- ><compiler generated undef>_0 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) has byte range [0 .. 23], reading byte range [24 .. 47].)
> "/amd/devco/scottz/stdcxx/4.2.x/include/rw/_traits.h", line 314, procedure main: warning #20208-D: Forming out of bound address (In expression "(const int*)(&(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref) - ><compiler generated undef>_0+1)+1", &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)- > <compiler generated undef>_0+1 (type: struct __rw::__string_ref<std::basic_string<int, std::char_traits<int>, std::allocator<int>>::value_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::traits_type, std::basic_string<int, std::char_traits<int>, std::allocator<int>>::allocator_type> ) (defined by &(&std::basic_string<int, std::char_traits<int>, std::allocator<int>>::_C_null_ref)-><compiler generated undef>_0) has byte range [0 .. 23], forming address byte range [28 .. 31].)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.