This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31246] -Wunreachable-code warnings for compiler-generated code
- 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 18:50:03 -0000
- Subject: [Bug c++/31246] -Wunreachable-code warnings for compiler-generated code
- References: <bug-31246-1902@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #25 from manu at gcc dot gnu dot org 2008-08-23 18:50 -------
This looks clearer to me. Maybe Jason or Mark have some idea where this code is
generated. It should be clear that it is compiler-generated and we can set
DECL_ARTIFICIAL or TREE_NO_WARNING. Then we just have to make sure to propagate
that. And finally, check it before warning.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Strange -Wunreachable-code |-Wunreachable-code warnings
|warnings |for compiler-generated code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31246