This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]