[Bug c++/45645] pr44972.C fails with error: ‘__assert_fail’ was not declared in this scope

redi at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Sep 13 17:05:00 GMT 2010



------- Comment #3 from redi at gcc dot gnu dot org  2010-09-13 17:04 -------
the test already includes <cassert> so presumably the fix is simply to replace
line 77 with 

 T const* operator->() const { assert(this->is_initialized()) ; return
this->get_ptr_impl() ; }


-- 


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



More information about the Gcc-bugs mailing list