This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
testing for a trivial constructor?
- From: Phil Edwards <phil at jaj dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 17 Jan 2003 12:37:26 -0500
- Subject: testing for a trivial constructor?
There are currently tests in the C++ front-end for trivial copy ctors,
assignment, and dtors, but not for trivial ctors. The existing test
macros don't do the work themselves; they (almost) immediately expand to
references to tree flags.
Which makes me suspect that
a) we don't currently have an easy test for trivial ctors, and
b) adding one would require eating another lang-specific flag.
But I'll ask just in case: is this being done anywhere?
Phil
--
I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
- Edsger Dijkstra, 1930-2002