This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21951] [gcc-4.0 regression, rejects-valid] std::vector.reserve() unusable with -Werror -Wall -O -fno-exceptions
- 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: 7 Jun 2005 18:16:59 -0000
- Subject: [Bug c++/21951] [gcc-4.0 regression, rejects-valid] std::vector.reserve() unusable with -Werror -Wall -O -fno-exceptions
- References: <20050607175818.21951.dank@kegel.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-07 18:16 -------
(In reply to comment #2)
> > You may retartget this pr to fixing the silliness in libstdc++, if you want.
Paolo I copied the quote fully when I really should not have. RTH did not know we could not fix the
if(0) part in libstdc++ at the time he wrote that comment, if you read the next comment in that bug I
explain why it cannot be fixed in libstdc++ (comment #3 in PR 19699):
(In reply to comment #2)
> You may retartget this pr to fixing the silliness in libstdc++, if you want.
Actually it is only silliness as try/catch is changed to be "if (true)"/"if (false)" if we don't have exceptions.
There is nothing can be done to the libstdc++ headers to fix this.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21951