This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12573] [3.4 Regression ] ICE (segfault) with Boost.Python


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-31 18:10 -------
Reopening because it still ICE when you add __offsetof__ in the preprocessed source file:
namespace boost{

template <bool x> struct STATIC_ASSERTION_FAILURE;

template <> struct STATIC_ASSERTION_FAILURE<true> { enum { value = 1 }; };

template<int x> struct static_assert_test{};

}
typedef unsigned int size_t;
namespace std{using ::size_t;}

namespace boost { namespace python { namespace converter {
struct rvalue_from_python_stage1_data
{
    void* convertible;
};

template <class T>
struct rvalue_from_python_storage
{
    rvalue_from_python_stage1_data stage1;
};
template <class T>
struct rvalue_from_python_data
{
    typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE< (bool)( 
__offsetof__ (reinterpret_cast <size_t> (&static_cast<rvalue_from_python_storage<T> *> (0)-
>stage1)) == 0 ) >)> boost_static_assert_typedef_100;
};

}}}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
           Keywords|                            |ice-on-valid-code
         Resolution|FIXED                       |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12573


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]