public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "melaniec at enfocus dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/48818] Wrong copy constructor used when using std::pair in .so and app.
Date: Wed, 04 May 2011 14:29:00 -0000	[thread overview]
Message-ID: <bug-48818-4-Gp7VQNjneD@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-48818-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48818

--- Comment #2 from Melanie Cappelaere <melaniec at enfocus dot com> 2011-05-04 14:19:01 UTC ---
Created attachment 24181
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24181
Example with custom allocator

Thank you for the workaround.

Little side note: this bug also applies to stl containers using a custom
allocator that happens to have the same name and occurs in both the application
and the library. Allocation is done using the library's allocator, but
deallocation is done using the application's. (The workaround also works in
this case.)


  parent reply	other threads:[~2011-05-04 14:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-29  9:45 [Bug c++/48818] New: " melaniec at enfocus dot com
2011-04-29 10:25 ` [Bug c++/48818] " rguenth at gcc dot gnu.org
2011-05-04 14:29 ` melaniec at enfocus dot com [this message]
2011-05-26  6:46 ` bangerth at gmail dot com
2011-06-06 16:27 ` melaniec at enfocus dot com
2011-09-02  9:31 ` rguenth at gcc dot gnu.org
2011-10-20  1:20 ` [Bug c++/48818] Wrong copy constructor used when using std::pair in .so and app. -fvisibility=hidden does not work paolo.carlini at oracle dot com
2011-10-20  7:28 ` vincenzo.innocente at cern dot ch
2011-10-20  8:24 ` paolo.carlini at oracle dot com

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=bug-48818-4-Gp7VQNjneD@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).