re PR c++/45645 (pr44972.C fails with error: ‘__assert_fail’ was not declared in this scope)
2010-09-21 Jonathan Wakely <redi@gcc.gnu.org> Jack Howarth <howarth@bromo.med.uc.edu> PR c++/45645 * g++.dg/torture/pr44972.C: Use portable assert(). Co-Authored-By: Jack Howarth <howarth@bromo.med.uc.edu> From-SVN: r164479
This commit is contained in:
parent
d80148b8d4
commit
5c0f24d0db
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2010-09-21 Jonathan Wakely <redi@gcc.gnu.org>
|
||||
Jack Howarth <howarth@bromo.med.uc.edu>
|
||||
|
||||
PR c++/45645
|
||||
* g++.dg/torture/pr44972.C: Use portable assert().
|
||||
|
||||
2010-09-21 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/45580
|
||||
|
|
|
@ -74,7 +74,7 @@ class optional : public optional_base<T>
|
|||
|
||||
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() ; }
|
||||
|
||||
} ;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue