This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34949] Dead code in empty destructors.
- 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: 23 Jan 2008 23:17:07 -0000
- Subject: [Bug c++/34949] Dead code in empty destructors.
- References: <bug-34949-13468@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-01-23 23:17 -------
hmmm, it is hard for middle-end to know these are dead, the C++ front-end needs
to comuniticate to the middle-end that after the function ends, this is not
going to be valid.
By the way, please don't call this a trivial destructor as it is not truely
trivial as defined by the C++ standard; trivial as defined by the C++ standard
means it does not exist and is compiler generated.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|middle-end |c++
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-01-23 23:17:07
date| |
Summary|Dead code in trivial |Dead code in empty
|destructors. |destructors.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34949