Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#6243 closed Bugs (fixed)

Sandia-pgi-11.9: more than one instance of overloaded function "min" matches

Reported by: viboes Owned by: viboes
Milestone: Boost 1.49.0 Component: chrono
Version: Boost 1.48.0 Severity: Not Applicable
Keywords: Cc:

Description

From the regression tests for trunk

Test output: Sandia-pgi-11.9 - chrono - min_time_point_header / pgi-11.9 Rev 75813 / Mon, 5 Dec 2011 16:37:47 +0000 Report Time: Thu, 8 Dec 2011 20:28:27 +0000

Compile [2011-12-05 18:17:11 UTC]: fail

"pgCC" -INLINE:none -Kieee -fpic -fPIC -gopt -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING -DBOOST_CHRONO_HEADER_ONLY -DBOOST_CHRONO_USES_MPL_ASSERT -DBOOST_CHRONO_VERSION=2 -DBOOST_SYSTEM_NO_DEPRECATED -Dneed_IOV_MAX -I".." -c -o "/scratch/kbelco/boost/results/boost/bin.v2/libs/chrono/test/min_time_point_header.test/pgi-11.9/debug/min_time_point.o" "../libs/chrono/test/../example/min_time_point.cpp"

"../libs/chrono/test/../example/min_time_point.cpp", line 63: error: more than

one instance of overloaded function "min" matches the argument list:

function template

"boost::common_type<boost::chrono::time_point<Clock, Duration1>, boost::chrono::time_point<Clock, Duration2>, void>::type min(boost::chrono::time_point<Clock, Duration1>, boost::chrono::time_point<Clock, Duration2>)"

function template "const _Tp &std::min(const _Tp &, const _Tp &)" argument types are: (T1, T2)

/*auto*/ T3 t3 = (min)(t1, t2);

It seems that this compiler is introducing the std namespace without adding a using namespace std;

To workaround the issue I will add a my_ns namesapce for the defined min function.

Attachments (1)

templates.txt (725 bytes ) - added by anonymous 10 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by viboes, 11 years ago

Resolution: fixed
Status: newclosed

Committed revision #75867.

Last edited 11 years ago by viboes (previous) (diff)

comment:2 by viboes, 11 years ago

Summary: Sandia-pgi-11.9: moren than one instance of overloaded function "min" matchesSandia-pgi-11.9: more than one instance of overloaded function "min" matches

comment:3 by viboes, 11 years ago

Milestone: To Be DeterminedBoost 1.49.0

Committed revision #75922.

by anonymous, 10 years ago

Attachment: templates.txt added
Note: See TracTickets for help on using tickets.