This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31246] Strange -Wunreachable-code warning with _GLIBCXX_DEBUG
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Aug 2008 16:01:17 -0000
- Subject: [Bug c++/31246] Strange -Wunreachable-code warning with _GLIBCXX_DEBUG
- References: <bug-31246-1902@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #19 from manu at gcc dot gnu dot org 2008-08-23 16:01 -------
(In reply to comment #4)
> Here is a minimal code example:
>
> #include <new>
>
> int* get_ptr(void* ptr)
> {
> return new(ptr) int();
> }
I can reproduce this, though.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31246