This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12573] [3.4 Regression ] ICE (segfault) with Boost.Python
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Dec 2003 18:10:54 -0000
- Subject: [Bug c++/12573] [3.4 Regression ] ICE (segfault) with Boost.Python
- References: <20031011014942.12573.jbrandmeyer@users.sourceforge.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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