public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12843] New: [ABI] Possibly wrong mangling (incompatibility with icc7)
@ 2003-10-30 14:41 bangerth at dealii dot org
  2003-10-30 14:42 ` [Bug c++/12843] " nathan at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: bangerth at dealii dot org @ 2003-10-30 14:41 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [ABI] Possibly wrong mangling (incompatibility with
                    icc7)
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bangerth at dealii dot org
                CC: gcc-bugs at gcc dot gnu dot org

This code
--------------------------------
template <typename Container>
typename Container::iterator
f(Container)
{ return typename Container::iterator(); }

struct X {
    typedef int * iterator;
};

template X::iterator f<X> (X);
------------------------------
produces the following manglings of the instance of f():
  mainline -fabi-version=1:
    _Z1fI1XEN9Container8iteratorES1_
  mainline -fabi-version=2:
    _Z1fI1XENT_8iteratorES1_
  icc 7.0:
    _Z1fI1XEN9Container8iteratorET_

I am not familiar with the mangling rules, but someone might want to
check that we really do the right thing in this case and that it is icc's
faulty mangling that lets us not be link-compatible between icc and
mainline with -fabi-version=2.

W.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-07-13 20:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-30 14:41 [Bug c++/12843] New: [ABI] Possibly wrong mangling (incompatibility with icc7) bangerth at dealii dot org
2003-10-30 14:42 ` [Bug c++/12843] " nathan at gcc dot gnu dot org
2003-10-30 16:12   ` Carlo Wood
2003-10-30 15:58 ` bangerth at ices dot utexas dot edu
2003-10-30 16:19 ` carlo at alinoe dot com
2004-07-13 20:27 ` reichelt at gcc dot gnu dot org
2004-07-13 20:27 ` reichelt at gcc dot gnu dot org

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).