[Boost-bugs] [Boost C++ Libraries] #3436: Code miscompilation with MSVC 7.1

Subject: [Boost-bugs] [Boost C++ Libraries] #3436: Code miscompilation with MSVC 7.1
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-09-11 16:02:34

#3436: Code miscompilation with MSVC 7.1
 Reporter: andysem | Owner: rogeeff
     Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: test
  Version: Boost 1.40.0 | Severity: Problem
 Keywords: msvc |
 While trying to compile Boost.Test 1.40 with MSVC 7.1 into a shared
 library I found out that the library crashed during initialization.

 Apparently, the crash was because of the broken code compilation in the
 library. The problem is that the typed_parameter< ... >::accept_modifier
 method is called on invalid this pointer. It looks like MSVC 7.1 has a
 hard time in compiling operator<< and operator- when it accepts shared_ptr
 by value. When I changed the operators to accept const references
 everything worked fine.

 Please find the patch attached. It may also be useful to speed up test
 startup, aside for the MSVC 7.1 cure.

Ticket URL: <https://svn.boost.org/trac/boost/ticket/3436>
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:01 UTC