public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: llewelly@xmission.com
To: Christian BRUEL <christian.bruel@st.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: inline operator delete redefinition and in-charge deleting destructor
Date: Wed, 12 May 2004 04:08:00 -0000	[thread overview]
Message-ID: <s3r7jvi5lul.fsf@xmission.xmission.com> (raw)
In-Reply-To: <40A0CE15.8F3CA05D@st.com>

Christian BRUEL <christian.bruel@st.com> writes:

> I have the following problem with gcc3.3.3 on Solaris:
> 
> If providing the definition of a destructor outside the module where
> "delete" is called, the compiler instantiates a function call to delete
> to the standard library, thus missing my definition.
> 
> See the following program:
> 
> Of course, I comment out the "#include "new"" in ddef.cxx the
> program

'new' is a standard C++ library header. if you re-define it, the
    behavior is undefined.

If you aren't trying to re-implemtn part of the C++ standard library,
    you have no business naming a header file 'new'.

Otherwise, investigate -nostdinc++, see: http://xrl.us/b2qw
[snip]

  parent reply	other threads:[~2004-05-12  4:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-11 14:19 Christian BRUEL
2004-05-11 15:55 ` Eljay Love-Jensen
2004-05-11 16:10   ` Jonathan Wakely
2004-05-11 16:27     ` Eljay Love-Jensen
2004-05-12  3:50       ` llewelly
2004-05-12  4:08 ` llewelly [this message]
2004-05-11 19:12 Christian Bruel
2004-05-11 19:39 ` Eljay Love-Jensen

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=s3r7jvi5lul.fsf@xmission.xmission.com \
    --to=llewelly@xmission.com \
    --cc=christian.bruel@st.com \
    --cc=gcc-help@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).