This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/19573] [4.0 regression] g++.old-deja/g++.robertl/eb132.C, eb73.C failures
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2005 22:47:46 -0000
- Subject: [Bug libstdc++/19573] [4.0 regression] g++.old-deja/g++.robertl/eb132.C, eb73.C failures
- References: <20050122035217.19573.hp@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-22 22:47 -------
Turns out this is correct warning and this is a dup of bug 19343 which has a way to fix it.
pointer
allocate(size_type __n, const void* = 0)
{
if (__builtin_expect(__n > this->max_size(), false))
std::__throw_bad_alloc(); <-- this function does not have noreturn on it.
return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp)));
}
*** This bug has been marked as a duplicate of 19343 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Component|c++ |libstdc++
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19573