This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33355] GCC has an invalid pointer.
- From: "shw_mail at wp dot pl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Sep 2007 15:31:37 -0000
- Subject: [Bug c++/33355] GCC has an invalid pointer.
- References: <bug-33355-14502@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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