[Bug c++/45645] pr44972.C fails with error: Â__assert_fail was not declared in this scope
howarth at nitro dot med dot uc dot edu
gcc-bugzilla@gcc.gnu.org
Mon Sep 13 19:13:00 GMT 2010
------- Comment #5 from howarth at nitro dot med dot uc dot edu 2010-09-13 19:13 -------
I can confirm that the change...
Index: gcc/testsuite/g++.dg/torture/pr44972.C
===================================================================
--- gcc/testsuite/g++.dg/torture/pr44972.C (revision 164251)
+++ gcc/testsuite/g++.dg/torture/pr44972.C (working copy)
@@ -74,7 +74,7 @@
T const& get() const ;
- T const* operator->() const { ((this->is_initialized()) ?
static_cast<void> (0) : __assert_fail ("this->is_initialized()", "pr44972.C",
78, __PRETTY_FUNCTION__)) ; return this->get_ptr_impl() ; }
+ T const* operator->() const { assert(this->is_initialized()) ; return
this->get_ptr_impl() ; }
} ;
...eliminates the g++.dg/torture/pr44972.C -O0 failures on
x86_64-apple-darwin10 at both -m32 and -m64.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45645
More information about the Gcc-bugs
mailing list