You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Farid Zaripov (JIRA)" <ji...@apache.org> on 2007/09/19 17:22:44 UTC
[jira] Created: (STDCXX-564) [MSVC] 64-bit conversion warnings
building the library
[MSVC] 64-bit conversion warnings building the library
------------------------------------------------------
Key: STDCXX-564
URL: https://issues.apache.org/jira/browse/STDCXX-564
Project: C++ Standard Library
Issue Type: Bug
Components: Build
Affects Versions: trunk
Environment: MSVC 8.0 x64 platform
Reporter: Farid Zaripov
Fix For: 4.2
These warnings I got when building the library with MSVC 8.0 / x64 platform:
file.cpp
$(TOPDIR)\src\file.cpp(484) : warning C4244: 'argument' : conversion from '__int64' to 'long', possible loss of data
$(TOPDIR)\src\file.cpp(493) : warning C4244: 'argument' : conversion from '__int64' to 'long', possible loss of data
$(TOPDIR)\src\file.cpp(508) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
$(TOPDIR)\src\file.cpp(523) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
locale_core.cpp
$(TOPDIR)\src\locale_core.cpp(141) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
num_put.cpp
$(TOPDIR)\src\num_put.cpp(745) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
$(TOPDIR)\src\num_put.cpp(772) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
$(TOPDIR)\src\num_put.cpp(802) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
$(TOPDIR)\src\num_put.cpp(830) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
ti_num_get.cpp
$(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
$(TOPDIR)\include\loc/_punct.h(143) : see reference to function template instantiation '__rw::__rw_istreambuf_iterator __rw::__rw_match_name<char,std::istreambuf_iterator<_CharT,_Traits>>(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,const char *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
with
[
_CharT=char,
_Traits=std::char_traits<char>
]
ti_wnum_get.cpp
$(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
$(TOPDIR)\include\loc/_punct.h(150) : see reference to function template instantiation '__rw::__rw_wistreambuf_iterator __rw::__rw_match_name<wchar_t,std::istreambuf_iterator<_CharT,_Traits>>(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,const wchar_t *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
with
[
_CharT=wchar_t,
_Traits=std::char_traits<wchar_t>
]
$(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
$(TOPDIR)\include\loc/_num_get.cc(218) : see reference to function template instantiation '_InputIter __rw::__rw_match_name<char,std::istreambuf_iterator<_CharT,_Traits>>(_InputIter,_InputIter,const _CharT *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
with
[
_InputIter=std::istreambuf_iterator<char,std::char_traits<char>>,
_CharT=char,
_Traits=std::char_traits<char>
]
$(TOPDIR)\include\loc/_num_get.cc(172) : while compiling class template member function 'std::istreambuf_iterator<_CharT,_Traits> std::num_get<_CharT,_InputIter>::do_get(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,std::ios_base &,__rw::__rw_iostate &,bool &) const'
with
[
_CharT=char,
_Traits=std::char_traits<char>,
_InputIter=std::istreambuf_iterator<char,std::char_traits<char>>
]
$(TOPDIR)\include\loc/_locale.h(346) : see reference to class template instantiation 'std::num_get<_CharT,_InputIter>' being compiled
with
[
_CharT=char,
_InputIter=std::istreambuf_iterator<char,std::char_traits<char>>
]
$(TOPDIR)\include\loc/_locale.h(88) : see reference to function template instantiation 'const __rw::__rw_facet *__rw::__rw_get_facet<_Facet>(const std::locale &,const _Facet *)' being compiled
with
[
_Facet=std::numpunct<wchar_t>
]
$(TOPDIR)\include\loc/_num_get.cc(196) : see reference to function template instantiation 'const _Facet &std::use_facet<std::numpunct<_CharT>>(const std::locale &)' being compiled
with
[
_Facet=std::numpunct<wchar_t>,
_CharT=wchar_t
]
$(TOPDIR)\include\loc/_num_get.cc(172) : while compiling class template member function 'std::istreambuf_iterator<_CharT,_Traits> std::num_get<_CharT,_InputIter>::do_get(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,std::ios_base &,__rw::__rw_iostate &,bool &) const'
with
[
_CharT=wchar_t,
_Traits=std::char_traits<wchar_t>,
_InputIter=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
]
$(TOPDIR)\include\loc/_num_get.h(276) : see reference to class template instantiation 'std::num_get<_CharT,_InputIter>' being compiled
with
[
_CharT=wchar_t,
_InputIter=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (STDCXX-564) [MSVC] 64-bit conversion warnings
building the library
Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Farid Zaripov closed STDCXX-564.
--------------------------------
> [MSVC] 64-bit conversion warnings building the library
> ------------------------------------------------------
>
> Key: STDCXX-564
> URL: https://issues.apache.org/jira/browse/STDCXX-564
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Build
> Affects Versions: trunk
> Environment: MSVC 8.0 x64 platform
> Reporter: Farid Zaripov
> Assignee: Farid Zaripov
> Fix For: 4.2
>
> Attachments: stdlib.patch
>
>
> These warnings I got when building the library with MSVC 8.0 / x64 platform:
> file.cpp
> $(TOPDIR)\src\file.cpp(484) : warning C4244: 'argument' : conversion from '__int64' to 'long', possible loss of data
> $(TOPDIR)\src\file.cpp(493) : warning C4244: 'argument' : conversion from '__int64' to 'long', possible loss of data
> $(TOPDIR)\src\file.cpp(508) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
> $(TOPDIR)\src\file.cpp(523) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
> locale_core.cpp
> $(TOPDIR)\src\locale_core.cpp(141) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
> num_put.cpp
> $(TOPDIR)\src\num_put.cpp(745) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(772) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(802) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(830) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> ti_num_get.cpp
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_punct.h(143) : see reference to function template instantiation '__rw::__rw_istreambuf_iterator __rw::__rw_match_name<char,std::istreambuf_iterator<_CharT,_Traits>>(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,const char *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _CharT=char,
> _Traits=std::char_traits<char>
> ]
> ti_wnum_get.cpp
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_punct.h(150) : see reference to function template instantiation '__rw::__rw_wistreambuf_iterator __rw::__rw_match_name<wchar_t,std::istreambuf_iterator<_CharT,_Traits>>(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,const wchar_t *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _CharT=wchar_t,
> _Traits=std::char_traits<wchar_t>
> ]
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_num_get.cc(218) : see reference to function template instantiation '_InputIter __rw::__rw_match_name<char,std::istreambuf_iterator<_CharT,_Traits>>(_InputIter,_InputIter,const _CharT *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>,
> _CharT=char,
> _Traits=std::char_traits<char>
> ]
> $(TOPDIR)\include\loc/_num_get.cc(172) : while compiling class template member function 'std::istreambuf_iterator<_CharT,_Traits> std::num_get<_CharT,_InputIter>::do_get(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,std::ios_base &,__rw::__rw_iostate &,bool &) const'
> with
> [
> _CharT=char,
> _Traits=std::char_traits<char>,
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>
> ]
> $(TOPDIR)\include\loc/_locale.h(346) : see reference to class template instantiation 'std::num_get<_CharT,_InputIter>' being compiled
> with
> [
> _CharT=char,
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>
> ]
> $(TOPDIR)\include\loc/_locale.h(88) : see reference to function template instantiation 'const __rw::__rw_facet *__rw::__rw_get_facet<_Facet>(const std::locale &,const _Facet *)' being compiled
> with
> [
> _Facet=std::numpunct<wchar_t>
> ]
> $(TOPDIR)\include\loc/_num_get.cc(196) : see reference to function template instantiation 'const _Facet &std::use_facet<std::numpunct<_CharT>>(const std::locale &)' being compiled
> with
> [
> _Facet=std::numpunct<wchar_t>,
> _CharT=wchar_t
> ]
> $(TOPDIR)\include\loc/_num_get.cc(172) : while compiling class template member function 'std::istreambuf_iterator<_CharT,_Traits> std::num_get<_CharT,_InputIter>::do_get(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,std::ios_base &,__rw::__rw_iostate &,bool &) const'
> with
> [
> _CharT=wchar_t,
> _Traits=std::char_traits<wchar_t>,
> _InputIter=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
> ]
> $(TOPDIR)\include\loc/_num_get.h(276) : see reference to class template instantiation 'std::num_get<_CharT,_InputIter>' being compiled
> with
> [
> _CharT=wchar_t,
> _InputIter=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
> ]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (STDCXX-564) [MSVC] 64-bit conversion warnings
building the library
Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Farid Zaripov updated STDCXX-564:
---------------------------------
Attachment: stdlib.patch
Patch file updated.
> [MSVC] 64-bit conversion warnings building the library
> ------------------------------------------------------
>
> Key: STDCXX-564
> URL: https://issues.apache.org/jira/browse/STDCXX-564
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Build
> Affects Versions: trunk
> Environment: MSVC 8.0 x64 platform
> Reporter: Farid Zaripov
> Assignee: Farid Zaripov
> Fix For: 4.2
>
> Attachments: stdlib.patch
>
>
> These warnings I got when building the library with MSVC 8.0 / x64 platform:
> file.cpp
> $(TOPDIR)\src\file.cpp(484) : warning C4244: 'argument' : conversion from '__int64' to 'long', possible loss of data
> $(TOPDIR)\src\file.cpp(493) : warning C4244: 'argument' : conversion from '__int64' to 'long', possible loss of data
> $(TOPDIR)\src\file.cpp(508) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
> $(TOPDIR)\src\file.cpp(523) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
> locale_core.cpp
> $(TOPDIR)\src\locale_core.cpp(141) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
> num_put.cpp
> $(TOPDIR)\src\num_put.cpp(745) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(772) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(802) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(830) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> ti_num_get.cpp
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_punct.h(143) : see reference to function template instantiation '__rw::__rw_istreambuf_iterator __rw::__rw_match_name<char,std::istreambuf_iterator<_CharT,_Traits>>(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,const char *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _CharT=char,
> _Traits=std::char_traits<char>
> ]
> ti_wnum_get.cpp
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_punct.h(150) : see reference to function template instantiation '__rw::__rw_wistreambuf_iterator __rw::__rw_match_name<wchar_t,std::istreambuf_iterator<_CharT,_Traits>>(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,const wchar_t *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _CharT=wchar_t,
> _Traits=std::char_traits<wchar_t>
> ]
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_num_get.cc(218) : see reference to function template instantiation '_InputIter __rw::__rw_match_name<char,std::istreambuf_iterator<_CharT,_Traits>>(_InputIter,_InputIter,const _CharT *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>,
> _CharT=char,
> _Traits=std::char_traits<char>
> ]
> $(TOPDIR)\include\loc/_num_get.cc(172) : while compiling class template member function 'std::istreambuf_iterator<_CharT,_Traits> std::num_get<_CharT,_InputIter>::do_get(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,std::ios_base &,__rw::__rw_iostate &,bool &) const'
> with
> [
> _CharT=char,
> _Traits=std::char_traits<char>,
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>
> ]
> $(TOPDIR)\include\loc/_locale.h(346) : see reference to class template instantiation 'std::num_get<_CharT,_InputIter>' being compiled
> with
> [
> _CharT=char,
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>
> ]
> $(TOPDIR)\include\loc/_locale.h(88) : see reference to function template instantiation 'const __rw::__rw_facet *__rw::__rw_get_facet<_Facet>(const std::locale &,const _Facet *)' being compiled
> with
> [
> _Facet=std::numpunct<wchar_t>
> ]
> $(TOPDIR)\include\loc/_num_get.cc(196) : see reference to function template instantiation 'const _Facet &std::use_facet<std::numpunct<_CharT>>(const std::locale &)' being compiled
> with
> [
> _Facet=std::numpunct<wchar_t>,
> _CharT=wchar_t
> ]
> $(TOPDIR)\include\loc/_num_get.cc(172) : while compiling class template member function 'std::istreambuf_iterator<_CharT,_Traits> std::num_get<_CharT,_InputIter>::do_get(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,std::ios_base &,__rw::__rw_iostate &,bool &) const'
> with
> [
> _CharT=wchar_t,
> _Traits=std::char_traits<wchar_t>,
> _InputIter=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
> ]
> $(TOPDIR)\include\loc/_num_get.h(276) : see reference to class template instantiation 'std::num_get<_CharT,_InputIter>' being compiled
> with
> [
> _CharT=wchar_t,
> _InputIter=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
> ]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (STDCXX-564) [MSVC] 64-bit conversion warnings
building the library
Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Farid Zaripov reassigned STDCXX-564:
------------------------------------
Assignee: Farid Zaripov
> [MSVC] 64-bit conversion warnings building the library
> ------------------------------------------------------
>
> Key: STDCXX-564
> URL: https://issues.apache.org/jira/browse/STDCXX-564
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Build
> Affects Versions: trunk
> Environment: MSVC 8.0 x64 platform
> Reporter: Farid Zaripov
> Assignee: Farid Zaripov
> Fix For: 4.2
>
>
> These warnings I got when building the library with MSVC 8.0 / x64 platform:
> file.cpp
> $(TOPDIR)\src\file.cpp(484) : warning C4244: 'argument' : conversion from '__int64' to 'long', possible loss of data
> $(TOPDIR)\src\file.cpp(493) : warning C4244: 'argument' : conversion from '__int64' to 'long', possible loss of data
> $(TOPDIR)\src\file.cpp(508) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
> $(TOPDIR)\src\file.cpp(523) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
> locale_core.cpp
> $(TOPDIR)\src\locale_core.cpp(141) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
> num_put.cpp
> $(TOPDIR)\src\num_put.cpp(745) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(772) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(802) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(830) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> ti_num_get.cpp
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_punct.h(143) : see reference to function template instantiation '__rw::__rw_istreambuf_iterator __rw::__rw_match_name<char,std::istreambuf_iterator<_CharT,_Traits>>(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,const char *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _CharT=char,
> _Traits=std::char_traits<char>
> ]
> ti_wnum_get.cpp
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_punct.h(150) : see reference to function template instantiation '__rw::__rw_wistreambuf_iterator __rw::__rw_match_name<wchar_t,std::istreambuf_iterator<_CharT,_Traits>>(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,const wchar_t *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _CharT=wchar_t,
> _Traits=std::char_traits<wchar_t>
> ]
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_num_get.cc(218) : see reference to function template instantiation '_InputIter __rw::__rw_match_name<char,std::istreambuf_iterator<_CharT,_Traits>>(_InputIter,_InputIter,const _CharT *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>,
> _CharT=char,
> _Traits=std::char_traits<char>
> ]
> $(TOPDIR)\include\loc/_num_get.cc(172) : while compiling class template member function 'std::istreambuf_iterator<_CharT,_Traits> std::num_get<_CharT,_InputIter>::do_get(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,std::ios_base &,__rw::__rw_iostate &,bool &) const'
> with
> [
> _CharT=char,
> _Traits=std::char_traits<char>,
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>
> ]
> $(TOPDIR)\include\loc/_locale.h(346) : see reference to class template instantiation 'std::num_get<_CharT,_InputIter>' being compiled
> with
> [
> _CharT=char,
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>
> ]
> $(TOPDIR)\include\loc/_locale.h(88) : see reference to function template instantiation 'const __rw::__rw_facet *__rw::__rw_get_facet<_Facet>(const std::locale &,const _Facet *)' being compiled
> with
> [
> _Facet=std::numpunct<wchar_t>
> ]
> $(TOPDIR)\include\loc/_num_get.cc(196) : see reference to function template instantiation 'const _Facet &std::use_facet<std::numpunct<_CharT>>(const std::locale &)' being compiled
> with
> [
> _Facet=std::numpunct<wchar_t>,
> _CharT=wchar_t
> ]
> $(TOPDIR)\include\loc/_num_get.cc(172) : while compiling class template member function 'std::istreambuf_iterator<_CharT,_Traits> std::num_get<_CharT,_InputIter>::do_get(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,std::ios_base &,__rw::__rw_iostate &,bool &) const'
> with
> [
> _CharT=wchar_t,
> _Traits=std::char_traits<wchar_t>,
> _InputIter=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
> ]
> $(TOPDIR)\include\loc/_num_get.h(276) : see reference to class template instantiation 'std::num_get<_CharT,_InputIter>' being compiled
> with
> [
> _CharT=wchar_t,
> _InputIter=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
> ]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (STDCXX-564) [MSVC] 64-bit conversion warnings
building the library
Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Farid Zaripov resolved STDCXX-564.
----------------------------------
Resolution: Fixed
Fixed thus: http://svn.apache.org/viewvc?rev=581929&view=rev
> [MSVC] 64-bit conversion warnings building the library
> ------------------------------------------------------
>
> Key: STDCXX-564
> URL: https://issues.apache.org/jira/browse/STDCXX-564
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Build
> Affects Versions: trunk
> Environment: MSVC 8.0 x64 platform
> Reporter: Farid Zaripov
> Assignee: Farid Zaripov
> Fix For: 4.2
>
> Attachments: stdlib.patch
>
>
> These warnings I got when building the library with MSVC 8.0 / x64 platform:
> file.cpp
> $(TOPDIR)\src\file.cpp(484) : warning C4244: 'argument' : conversion from '__int64' to 'long', possible loss of data
> $(TOPDIR)\src\file.cpp(493) : warning C4244: 'argument' : conversion from '__int64' to 'long', possible loss of data
> $(TOPDIR)\src\file.cpp(508) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
> $(TOPDIR)\src\file.cpp(523) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
> locale_core.cpp
> $(TOPDIR)\src\locale_core.cpp(141) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
> num_put.cpp
> $(TOPDIR)\src\num_put.cpp(745) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(772) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(802) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(830) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> ti_num_get.cpp
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_punct.h(143) : see reference to function template instantiation '__rw::__rw_istreambuf_iterator __rw::__rw_match_name<char,std::istreambuf_iterator<_CharT,_Traits>>(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,const char *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _CharT=char,
> _Traits=std::char_traits<char>
> ]
> ti_wnum_get.cpp
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_punct.h(150) : see reference to function template instantiation '__rw::__rw_wistreambuf_iterator __rw::__rw_match_name<wchar_t,std::istreambuf_iterator<_CharT,_Traits>>(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,const wchar_t *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _CharT=wchar_t,
> _Traits=std::char_traits<wchar_t>
> ]
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_num_get.cc(218) : see reference to function template instantiation '_InputIter __rw::__rw_match_name<char,std::istreambuf_iterator<_CharT,_Traits>>(_InputIter,_InputIter,const _CharT *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>,
> _CharT=char,
> _Traits=std::char_traits<char>
> ]
> $(TOPDIR)\include\loc/_num_get.cc(172) : while compiling class template member function 'std::istreambuf_iterator<_CharT,_Traits> std::num_get<_CharT,_InputIter>::do_get(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,std::ios_base &,__rw::__rw_iostate &,bool &) const'
> with
> [
> _CharT=char,
> _Traits=std::char_traits<char>,
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>
> ]
> $(TOPDIR)\include\loc/_locale.h(346) : see reference to class template instantiation 'std::num_get<_CharT,_InputIter>' being compiled
> with
> [
> _CharT=char,
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>
> ]
> $(TOPDIR)\include\loc/_locale.h(88) : see reference to function template instantiation 'const __rw::__rw_facet *__rw::__rw_get_facet<_Facet>(const std::locale &,const _Facet *)' being compiled
> with
> [
> _Facet=std::numpunct<wchar_t>
> ]
> $(TOPDIR)\include\loc/_num_get.cc(196) : see reference to function template instantiation 'const _Facet &std::use_facet<std::numpunct<_CharT>>(const std::locale &)' being compiled
> with
> [
> _Facet=std::numpunct<wchar_t>,
> _CharT=wchar_t
> ]
> $(TOPDIR)\include\loc/_num_get.cc(172) : while compiling class template member function 'std::istreambuf_iterator<_CharT,_Traits> std::num_get<_CharT,_InputIter>::do_get(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,std::ios_base &,__rw::__rw_iostate &,bool &) const'
> with
> [
> _CharT=wchar_t,
> _Traits=std::char_traits<wchar_t>,
> _InputIter=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
> ]
> $(TOPDIR)\include\loc/_num_get.h(276) : see reference to class template instantiation 'std::num_get<_CharT,_InputIter>' being compiled
> with
> [
> _CharT=wchar_t,
> _InputIter=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
> ]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (STDCXX-564) [MSVC] 64-bit conversion warnings
building the library
Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Farid Zaripov updated STDCXX-564:
---------------------------------
Attachment: stdlib.patch
The patch is attached.
> [MSVC] 64-bit conversion warnings building the library
> ------------------------------------------------------
>
> Key: STDCXX-564
> URL: https://issues.apache.org/jira/browse/STDCXX-564
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Build
> Affects Versions: trunk
> Environment: MSVC 8.0 x64 platform
> Reporter: Farid Zaripov
> Assignee: Farid Zaripov
> Fix For: 4.2
>
> Attachments: stdlib.patch
>
>
> These warnings I got when building the library with MSVC 8.0 / x64 platform:
> file.cpp
> $(TOPDIR)\src\file.cpp(484) : warning C4244: 'argument' : conversion from '__int64' to 'long', possible loss of data
> $(TOPDIR)\src\file.cpp(493) : warning C4244: 'argument' : conversion from '__int64' to 'long', possible loss of data
> $(TOPDIR)\src\file.cpp(508) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
> $(TOPDIR)\src\file.cpp(523) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
> locale_core.cpp
> $(TOPDIR)\src\locale_core.cpp(141) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
> num_put.cpp
> $(TOPDIR)\src\num_put.cpp(745) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(772) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(802) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(830) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> ti_num_get.cpp
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_punct.h(143) : see reference to function template instantiation '__rw::__rw_istreambuf_iterator __rw::__rw_match_name<char,std::istreambuf_iterator<_CharT,_Traits>>(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,const char *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _CharT=char,
> _Traits=std::char_traits<char>
> ]
> ti_wnum_get.cpp
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_punct.h(150) : see reference to function template instantiation '__rw::__rw_wistreambuf_iterator __rw::__rw_match_name<wchar_t,std::istreambuf_iterator<_CharT,_Traits>>(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,const wchar_t *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _CharT=wchar_t,
> _Traits=std::char_traits<wchar_t>
> ]
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_num_get.cc(218) : see reference to function template instantiation '_InputIter __rw::__rw_match_name<char,std::istreambuf_iterator<_CharT,_Traits>>(_InputIter,_InputIter,const _CharT *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>,
> _CharT=char,
> _Traits=std::char_traits<char>
> ]
> $(TOPDIR)\include\loc/_num_get.cc(172) : while compiling class template member function 'std::istreambuf_iterator<_CharT,_Traits> std::num_get<_CharT,_InputIter>::do_get(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,std::ios_base &,__rw::__rw_iostate &,bool &) const'
> with
> [
> _CharT=char,
> _Traits=std::char_traits<char>,
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>
> ]
> $(TOPDIR)\include\loc/_locale.h(346) : see reference to class template instantiation 'std::num_get<_CharT,_InputIter>' being compiled
> with
> [
> _CharT=char,
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>
> ]
> $(TOPDIR)\include\loc/_locale.h(88) : see reference to function template instantiation 'const __rw::__rw_facet *__rw::__rw_get_facet<_Facet>(const std::locale &,const _Facet *)' being compiled
> with
> [
> _Facet=std::numpunct<wchar_t>
> ]
> $(TOPDIR)\include\loc/_num_get.cc(196) : see reference to function template instantiation 'const _Facet &std::use_facet<std::numpunct<_CharT>>(const std::locale &)' being compiled
> with
> [
> _Facet=std::numpunct<wchar_t>,
> _CharT=wchar_t
> ]
> $(TOPDIR)\include\loc/_num_get.cc(172) : while compiling class template member function 'std::istreambuf_iterator<_CharT,_Traits> std::num_get<_CharT,_InputIter>::do_get(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,std::ios_base &,__rw::__rw_iostate &,bool &) const'
> with
> [
> _CharT=wchar_t,
> _Traits=std::char_traits<wchar_t>,
> _InputIter=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
> ]
> $(TOPDIR)\include\loc/_num_get.h(276) : see reference to class template instantiation 'std::num_get<_CharT,_InputIter>' being compiled
> with
> [
> _CharT=wchar_t,
> _InputIter=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
> ]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (STDCXX-564) [MSVC] 64-bit conversion warnings
building the library
Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Farid Zaripov updated STDCXX-564:
---------------------------------
Attachment: (was: stdlib.patch)
> [MSVC] 64-bit conversion warnings building the library
> ------------------------------------------------------
>
> Key: STDCXX-564
> URL: https://issues.apache.org/jira/browse/STDCXX-564
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Build
> Affects Versions: trunk
> Environment: MSVC 8.0 x64 platform
> Reporter: Farid Zaripov
> Assignee: Farid Zaripov
> Fix For: 4.2
>
>
> These warnings I got when building the library with MSVC 8.0 / x64 platform:
> file.cpp
> $(TOPDIR)\src\file.cpp(484) : warning C4244: 'argument' : conversion from '__int64' to 'long', possible loss of data
> $(TOPDIR)\src\file.cpp(493) : warning C4244: 'argument' : conversion from '__int64' to 'long', possible loss of data
> $(TOPDIR)\src\file.cpp(508) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
> $(TOPDIR)\src\file.cpp(523) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
> locale_core.cpp
> $(TOPDIR)\src\locale_core.cpp(141) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
> num_put.cpp
> $(TOPDIR)\src\num_put.cpp(745) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(772) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(802) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(830) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> ti_num_get.cpp
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_punct.h(143) : see reference to function template instantiation '__rw::__rw_istreambuf_iterator __rw::__rw_match_name<char,std::istreambuf_iterator<_CharT,_Traits>>(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,const char *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _CharT=char,
> _Traits=std::char_traits<char>
> ]
> ti_wnum_get.cpp
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_punct.h(150) : see reference to function template instantiation '__rw::__rw_wistreambuf_iterator __rw::__rw_match_name<wchar_t,std::istreambuf_iterator<_CharT,_Traits>>(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,const wchar_t *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _CharT=wchar_t,
> _Traits=std::char_traits<wchar_t>
> ]
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_num_get.cc(218) : see reference to function template instantiation '_InputIter __rw::__rw_match_name<char,std::istreambuf_iterator<_CharT,_Traits>>(_InputIter,_InputIter,const _CharT *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>,
> _CharT=char,
> _Traits=std::char_traits<char>
> ]
> $(TOPDIR)\include\loc/_num_get.cc(172) : while compiling class template member function 'std::istreambuf_iterator<_CharT,_Traits> std::num_get<_CharT,_InputIter>::do_get(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,std::ios_base &,__rw::__rw_iostate &,bool &) const'
> with
> [
> _CharT=char,
> _Traits=std::char_traits<char>,
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>
> ]
> $(TOPDIR)\include\loc/_locale.h(346) : see reference to class template instantiation 'std::num_get<_CharT,_InputIter>' being compiled
> with
> [
> _CharT=char,
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>
> ]
> $(TOPDIR)\include\loc/_locale.h(88) : see reference to function template instantiation 'const __rw::__rw_facet *__rw::__rw_get_facet<_Facet>(const std::locale &,const _Facet *)' being compiled
> with
> [
> _Facet=std::numpunct<wchar_t>
> ]
> $(TOPDIR)\include\loc/_num_get.cc(196) : see reference to function template instantiation 'const _Facet &std::use_facet<std::numpunct<_CharT>>(const std::locale &)' being compiled
> with
> [
> _Facet=std::numpunct<wchar_t>,
> _CharT=wchar_t
> ]
> $(TOPDIR)\include\loc/_num_get.cc(172) : while compiling class template member function 'std::istreambuf_iterator<_CharT,_Traits> std::num_get<_CharT,_InputIter>::do_get(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,std::ios_base &,__rw::__rw_iostate &,bool &) const'
> with
> [
> _CharT=wchar_t,
> _Traits=std::char_traits<wchar_t>,
> _InputIter=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
> ]
> $(TOPDIR)\include\loc/_num_get.h(276) : see reference to class template instantiation 'std::num_get<_CharT,_InputIter>' being compiled
> with
> [
> _CharT=wchar_t,
> _InputIter=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
> ]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (STDCXX-564) [MSVC] 64-bit conversion warnings
building the library
Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531841 ]
Farid Zaripov commented on STDCXX-564:
--------------------------------------
There left 3 warnings:
$(TOPDIR)\src\file.cpp(493) : warning C4244: 'argument' : conversion from '__int64' to 'long', possible loss of data
$(TOPDIR)\src\file.cpp(508) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
$(TOPDIR)\src\file.cpp(523) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
The problem is the difference between posix function prototypes and MSVC function prototypes:
off_t lseek(int fildes, off_t offset, int whence); vs long lseek(int _FileHandle, long _Offset, int _Origin);
ssize_t read(int fildes, void *buf, size_t nbyte); vs int read(int _FileHandle, void * _DstBuf, unsigned int _MaxCharCount);
ssize_t write(int fildes, const void *buf, size_t nbyte); vs int write(int _Filehandle, const void * _Buf, unsigned int _MaxCharCount);
> [MSVC] 64-bit conversion warnings building the library
> ------------------------------------------------------
>
> Key: STDCXX-564
> URL: https://issues.apache.org/jira/browse/STDCXX-564
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Build
> Affects Versions: trunk
> Environment: MSVC 8.0 x64 platform
> Reporter: Farid Zaripov
> Assignee: Farid Zaripov
> Fix For: 4.2
>
> Attachments: stdlib.patch
>
>
> These warnings I got when building the library with MSVC 8.0 / x64 platform:
> file.cpp
> $(TOPDIR)\src\file.cpp(484) : warning C4244: 'argument' : conversion from '__int64' to 'long', possible loss of data
> $(TOPDIR)\src\file.cpp(493) : warning C4244: 'argument' : conversion from '__int64' to 'long', possible loss of data
> $(TOPDIR)\src\file.cpp(508) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
> $(TOPDIR)\src\file.cpp(523) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
> locale_core.cpp
> $(TOPDIR)\src\locale_core.cpp(141) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
> num_put.cpp
> $(TOPDIR)\src\num_put.cpp(745) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(772) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(802) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(830) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> ti_num_get.cpp
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_punct.h(143) : see reference to function template instantiation '__rw::__rw_istreambuf_iterator __rw::__rw_match_name<char,std::istreambuf_iterator<_CharT,_Traits>>(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,const char *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _CharT=char,
> _Traits=std::char_traits<char>
> ]
> ti_wnum_get.cpp
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_punct.h(150) : see reference to function template instantiation '__rw::__rw_wistreambuf_iterator __rw::__rw_match_name<wchar_t,std::istreambuf_iterator<_CharT,_Traits>>(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,const wchar_t *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _CharT=wchar_t,
> _Traits=std::char_traits<wchar_t>
> ]
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_num_get.cc(218) : see reference to function template instantiation '_InputIter __rw::__rw_match_name<char,std::istreambuf_iterator<_CharT,_Traits>>(_InputIter,_InputIter,const _CharT *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>,
> _CharT=char,
> _Traits=std::char_traits<char>
> ]
> $(TOPDIR)\include\loc/_num_get.cc(172) : while compiling class template member function 'std::istreambuf_iterator<_CharT,_Traits> std::num_get<_CharT,_InputIter>::do_get(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,std::ios_base &,__rw::__rw_iostate &,bool &) const'
> with
> [
> _CharT=char,
> _Traits=std::char_traits<char>,
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>
> ]
> $(TOPDIR)\include\loc/_locale.h(346) : see reference to class template instantiation 'std::num_get<_CharT,_InputIter>' being compiled
> with
> [
> _CharT=char,
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>
> ]
> $(TOPDIR)\include\loc/_locale.h(88) : see reference to function template instantiation 'const __rw::__rw_facet *__rw::__rw_get_facet<_Facet>(const std::locale &,const _Facet *)' being compiled
> with
> [
> _Facet=std::numpunct<wchar_t>
> ]
> $(TOPDIR)\include\loc/_num_get.cc(196) : see reference to function template instantiation 'const _Facet &std::use_facet<std::numpunct<_CharT>>(const std::locale &)' being compiled
> with
> [
> _Facet=std::numpunct<wchar_t>,
> _CharT=wchar_t
> ]
> $(TOPDIR)\include\loc/_num_get.cc(172) : while compiling class template member function 'std::istreambuf_iterator<_CharT,_Traits> std::num_get<_CharT,_InputIter>::do_get(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,std::ios_base &,__rw::__rw_iostate &,bool &) const'
> with
> [
> _CharT=wchar_t,
> _Traits=std::char_traits<wchar_t>,
> _InputIter=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
> ]
> $(TOPDIR)\include\loc/_num_get.h(276) : see reference to class template instantiation 'std::num_get<_CharT,_InputIter>' being compiled
> with
> [
> _CharT=wchar_t,
> _InputIter=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
> ]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (STDCXX-564) [MSVC] 64-bit conversion warnings
building the library
Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Farid Zaripov updated STDCXX-564:
---------------------------------
Patch Info: [Patch Available]
> [MSVC] 64-bit conversion warnings building the library
> ------------------------------------------------------
>
> Key: STDCXX-564
> URL: https://issues.apache.org/jira/browse/STDCXX-564
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Build
> Affects Versions: trunk
> Environment: MSVC 8.0 x64 platform
> Reporter: Farid Zaripov
> Assignee: Farid Zaripov
> Fix For: 4.2
>
>
> These warnings I got when building the library with MSVC 8.0 / x64 platform:
> file.cpp
> $(TOPDIR)\src\file.cpp(484) : warning C4244: 'argument' : conversion from '__int64' to 'long', possible loss of data
> $(TOPDIR)\src\file.cpp(493) : warning C4244: 'argument' : conversion from '__int64' to 'long', possible loss of data
> $(TOPDIR)\src\file.cpp(508) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
> $(TOPDIR)\src\file.cpp(523) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
> locale_core.cpp
> $(TOPDIR)\src\locale_core.cpp(141) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
> num_put.cpp
> $(TOPDIR)\src\num_put.cpp(745) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(772) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(802) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> $(TOPDIR)\src\num_put.cpp(830) : warning C4244: 'argument' : conversion from '__int64' to 'int', possible loss of data
> ti_num_get.cpp
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_punct.h(143) : see reference to function template instantiation '__rw::__rw_istreambuf_iterator __rw::__rw_match_name<char,std::istreambuf_iterator<_CharT,_Traits>>(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,const char *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _CharT=char,
> _Traits=std::char_traits<char>
> ]
> ti_wnum_get.cpp
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_punct.h(150) : see reference to function template instantiation '__rw::__rw_wistreambuf_iterator __rw::__rw_match_name<wchar_t,std::istreambuf_iterator<_CharT,_Traits>>(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,const wchar_t *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _CharT=wchar_t,
> _Traits=std::char_traits<wchar_t>
> ]
> $(TOPDIR)\include\loc/_punct.cc(90) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
> $(TOPDIR)\include\loc/_num_get.cc(218) : see reference to function template instantiation '_InputIter __rw::__rw_match_name<char,std::istreambuf_iterator<_CharT,_Traits>>(_InputIter,_InputIter,const _CharT *const *,const unsigned __int64 *,unsigned __int64,unsigned __int64 &,int &,std::ios_base *)' being compiled
> with
> [
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>,
> _CharT=char,
> _Traits=std::char_traits<char>
> ]
> $(TOPDIR)\include\loc/_num_get.cc(172) : while compiling class template member function 'std::istreambuf_iterator<_CharT,_Traits> std::num_get<_CharT,_InputIter>::do_get(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,std::ios_base &,__rw::__rw_iostate &,bool &) const'
> with
> [
> _CharT=char,
> _Traits=std::char_traits<char>,
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>
> ]
> $(TOPDIR)\include\loc/_locale.h(346) : see reference to class template instantiation 'std::num_get<_CharT,_InputIter>' being compiled
> with
> [
> _CharT=char,
> _InputIter=std::istreambuf_iterator<char,std::char_traits<char>>
> ]
> $(TOPDIR)\include\loc/_locale.h(88) : see reference to function template instantiation 'const __rw::__rw_facet *__rw::__rw_get_facet<_Facet>(const std::locale &,const _Facet *)' being compiled
> with
> [
> _Facet=std::numpunct<wchar_t>
> ]
> $(TOPDIR)\include\loc/_num_get.cc(196) : see reference to function template instantiation 'const _Facet &std::use_facet<std::numpunct<_CharT>>(const std::locale &)' being compiled
> with
> [
> _Facet=std::numpunct<wchar_t>,
> _CharT=wchar_t
> ]
> $(TOPDIR)\include\loc/_num_get.cc(172) : while compiling class template member function 'std::istreambuf_iterator<_CharT,_Traits> std::num_get<_CharT,_InputIter>::do_get(std::istreambuf_iterator<_CharT,_Traits>,std::istreambuf_iterator<_CharT,_Traits>,std::ios_base &,__rw::__rw_iostate &,bool &) const'
> with
> [
> _CharT=wchar_t,
> _Traits=std::char_traits<wchar_t>,
> _InputIter=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
> ]
> $(TOPDIR)\include\loc/_num_get.h(276) : see reference to class template instantiation 'std::num_get<_CharT,_InputIter>' being compiled
> with
> [
> _CharT=wchar_t,
> _InputIter=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
> ]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.