------- 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