Hi the following code works fine (in the browser) when used with O1 
optimisations or lower, but seems to fail when O2 or higher is used. Does 
anyone have any idea why this might be happening ? I have tested this with 
the latest incoming (LLVM 3.5).

#include <iostream>
#include <boost/shared_ptr.hpp>
using namespace std;

extern "C" {
  double test(void) {
    boost::shared_ptr<int> y = boost::shared_ptr<int>(new int(42));
    return *y;
  }
}

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to