Opened 14 years ago

Closed 14 years ago

#2083 closed Bugs (fixed)

gcc 4.3.1 compains about a change of meaning of dst_adjustment_offsets

Reported by: ruediger.berlich@… Owned by: az_sw_dude
Milestone: Boost 1.36.0 Component: date_time
Version: Boost Development Trunk Severity: Problem
Keywords: typedef redefinition Cc: ruediger.berlich@…

Description

Hi there, when compiling my application with the current trunk version of Boost 1.36 under OpenSUSE 11 64 bit, gcc 4.3.1, I get the message that

/opt/boostinclude/boost/date_time/tz_db_base.hpp:161: error: declaration of ‘typedef class boost::date_time::dst_adjustment_offsets<typename time_zone_type::time_duration_type> boost::date_time::tz_db_base<time_zone_type, rule_type>::dst_adjustment_offsets’ /opt/boostinclude/boost/date_time/time_zone_base.hpp:76: error: changes meaning of ‘dst_adjustment_offsets’ from ‘class boost::date_time::dst_adjustment_offsets<typename time_zone_type::time_duration_type>’

This can be "fixed" by removing the typedef and changing the subsequent occurrences of dst_adjustment_offsets to the corresponding template version.

The problem also shows up with Boost 1.35. No problem is visible with the combination of gcc 1.35 and gcc 4.2.1 in 32 bit mode.

I'd be happy to test any amended version of date_time on my OpenSUSE 11 box. Contact me via ruediger.berlich@… .

Best, Ruediger

Change History (3)

comment:1 by Marshall Clow, 14 years ago

Component: Nonedate_time
Owner: set to az_sw_dude

comment:2 by Steven Robbins <smr@…>, 14 years ago

Duplicate of ticket 1615 (which has a patch).

comment:3 by Andrey Semashev, 14 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.