Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67650 - trunk/libs/ratio/test/ratio_extensions
From: vicente.botet_at_[hidden]
Date: 2011-01-04 12:14:18


Author: viboes
Date: 2011-01-04 12:14:17 EST (Tue, 04 Jan 2011)
New Revision: 67650
URL: http://svn.boost.org/trac/boost/changeset/67650

Log:
Boost.Ratio: Try to solve issue

 Test output: Sandia-intel-10.1-32 - ratio - ratio_ext_pass / intel-linux-10.1
Rev 67645 / Tue, 4 Jan 2011 03:00:36 +0000
Report Time: Tue, 4 Jan 2011 14:18:10 +0000

Compile [2011-01-04 04:29:53 UTC]: fail

    "/usr/local/intel/cc/10.1.015/bin/icpc" -c -xc++ -O0 -g -w2 -inline-level=0 -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_ENABLE_WARNINGS -DBOOST_MPL_NEXT_PRIOR_EXT -DBOOST_RATIO_USES_MPL_ASSERT -I".." -c -o "/scratch/boost/results/boost/bin.v2/libs/ratio/test/ratio_ext_pass.test/intel-linux-10.1/debug/link-static/threading-multi/ratio_extensions/ratio_ext_pass.o" "../libs/ratio/test/ratio_extensions/ratio_ext_pass.cpp"

../libs/ratio/test/ratio_extensions/ratio_ext_pass.cpp(11): remark #1418: external function definition with no prior declaration
  boost::intmax_t func(boost::ratio<5,6> s) {
                  ^

../libs/ratio/test/ratio_extensions/ratio_ext_pass.cpp(15): remark #1418: external function definition with no prior declaration
  void test() {
       ^

../libs/ratio/test/ratio_extensions/ratio_ext_pass.cpp(16): internal error: assertion failed: copy_template_param_expr: bad expression kind (shared/edgcpfe/il.c, line 12561)

      BOOST_TEST((
      ^

compilation aborted for ../libs/ratio/test/ratio_extensions/ratio_ext_pass.cpp (code 4)

Text files modified:
   trunk/libs/ratio/test/ratio_extensions/ratio_ext_pass.cpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/libs/ratio/test/ratio_extensions/ratio_ext_pass.cpp
==============================================================================
--- trunk/libs/ratio/test/ratio_extensions/ratio_ext_pass.cpp (original)
+++ trunk/libs/ratio/test/ratio_extensions/ratio_ext_pass.cpp 2011-01-04 12:14:17 EST (Tue, 04 Jan 2011)
@@ -13,8 +13,9 @@
 }
 
 void test() {
+ boost::ratio<10,12> r;
     BOOST_TEST((
- func(boost::ratio<10,12>() )==5
+ func(r)==5
     ));
 }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk