Use temporary int objects to access struct tm members
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Tue, 10 Jan 2017 14:15:59 +0000 (14:15 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 10 Jan 2017 14:15:59 +0000 (14:15 +0000)
commit26b67e383f4b1df812cd7ba33de43451aff883ba
tree74b3473fecf4cef43262f2278bc1ae07a01244ad
parent79fc8ffe6cd6e4b23c797e166ea3b0c1c0703c29
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.

From-SVN: r244271
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets_nonio.tcc