[Boost-bugs] [Boost C++ Libraries] #8177: multiprecision, can convert from cpp_integer to void*

Subject: [Boost-bugs] [Boost C++ Libraries] #8177: multiprecision, can convert from cpp_integer to void*
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-25 21:45:47


#8177: multiprecision, can convert from cpp_integer to void*
--------------------------------------------------+-------------------------
 Reporter: Stepan Podoskin <stepik-777@…> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: multiprecision
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
--------------------------------------------------+-------------------------
 MSVC 2010 is able to compile this:
 {{{

 #include <boost/multiprecision/cpp_int.hpp>
 using namespace boost::multiprecision;

 int main()
 {
     cpp_int a, b;
     void* p = a*b;
     return 0;
 }

 }}}

 GCC 4.7.2 can not compile this code, but it can compile this:
 {{{

 #include <boost/multiprecision/cpp_int.hpp>
 using namespace boost::multiprecision;

 int main()
 {
     cpp_int a, b, c;
     void (*p)() = a*b;
     return 0;
 }

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8177>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC