Use temporary int objects to access struct tm members
commitb6eaa06ee7d5e25d83d194244988af7b66a610af
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Jan 2017 14:15:59 +0000 (10 14:15 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Jan 2017 14:15:59 +0000 (10 14:15 +0000)
tree74b3473fecf4cef43262f2278bc1ae07a01244ad
parente0aa57d6b04908affdf4655a6b4a9f2d4d03483b
Use temporary int objects to access struct tm members

Call _M_extract_* functions family through temporary int objects, so
it doesn't convert from lvalue to rvalue through a temporary in AVR
because of the incompatible types used in AVR-Libc.

This fixes compilation errors with AVR-Libc while compiling libstdc++
for AVR target.

2017-01-10  Felipe Magno de Almeida <felipe@expertisesolutions.com.br>

* include/bits/locale_facets_nonio.tcc
(time_get::_M_extract_via_format): Avoid compilation errors with
non-standard struct tm.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244271 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets_nonio.tcc