[Bug c++/33355] GCC has an invalid pointer.
shw_mail at wp dot pl
gcc-bugzilla@gcc.gnu.org
Sat Sep 8 15:31:00 GMT 2007
------- Comment #2 from shw_mail at wp dot pl 2007-09-08 15:31 -------
(In reply to comment #1)
> Can you please attach preprocessed source for a testcase triggering this?
>
Below is separated FULL example :-).
// test_case.cpp
#include <boost/static_assert.hpp>
#include <typeinfo>
struct MyType1{};
typedef Mytype1 MyType2;
int main ()
{
BOOST_STATIC_ASSERT (
typeid (Mytype1).name()
== typeid(MyType2).name()
);
}
$ g++ test_case.cpp
causes internal error.
The macro is expanded to:
typedef ::boost::static_assert_test< sizeof(::boost::STATIC_ASSERTION_FAILURE<
(bool)( typeid (Mytype1).name() == typeid(MyType2).name() ) >)>
boost_static_assert_typedef_12;
Regards.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33355
More information about the Gcc-bugs
mailing list