From: Jason Merrill <jason@redhat.com>
To: Eric Botcazou <ebotcazou@adacore.com>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: C++ PATCH to deal with trivial but non-callable [cd]tors
Date: Fri, 25 Oct 2013 19:27:00 -0000 [thread overview]
Message-ID: <526AC0A1.4040402@redhat.com> (raw)
In-Reply-To: <2080743.sc4IXPmP0S@polaris>
On 10/25/2013 01:53 PM, Eric Botcazou wrote:
> This has introduced a problem for the -fdump-ada-spec machinery, which boils
> down to the TYPE_METHODS field of the following structure:
>
> struct _outer {
> struct _inner {
> int x;
> } inner;
> } outer;
>
> Previously it was empty, now it contains the following destructor:
>[snip]
> Is that expected and, consequently, should we adjust the machinery?
In C++ all classes have destructors, but we try to defer building the
implicit declaration. My patch causes us to build those implicit
declarations more often, which is probably a bit of a memory regression,
but it would be good for your code to handle the dtor being declared.
Jason
next prev parent reply other threads:[~2013-10-25 19:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-23 19:14 Jason Merrill
2013-10-23 19:16 ` Paolo Carlini
2013-10-25 19:04 ` Eric Botcazou
2013-10-25 19:27 ` Jason Merrill [this message]
2013-10-30 10:38 ` Eric Botcazou
2013-10-30 17:02 ` Jason Merrill
2013-10-30 19:22 ` Eric Botcazou
2013-10-31 15:15 ` Eric Botcazou
2013-10-31 16:27 ` Jason Merrill
2014-01-20 10:19 ` Eric Botcazou
2013-10-31 14:40 ` Jason Merrill
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=526AC0A1.4040402@redhat.com \
--to=jason@redhat.com \
--cc=ebotcazou@adacore.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).