Opened 14 years ago

Closed 14 years ago

#2091 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: Cc: ruediger.berlich@…

Description

Note: This is a resubmission of report #2083, as I unfortunately didn't assign the ticket to a particular library part.

/*/

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 penSUSE 11 box. Contact me via ruediger.berlich@… .

Best, Ruediger

Change History (2)

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

Duplicate of #1615.

comment:2 by Andrey Semashev, 14 years ago

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