public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/41233]  New: Templated conversion operator produces symbol name that won't demangle
@ 2009-09-03  0:21 zackw at panix dot com
  2010-02-25 16:33 ` [Bug c++/41233] " jim at clkda dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: zackw at panix dot com @ 2009-09-03  0:21 UTC (permalink / raw)
  To: gcc-bugs

This program

  class Source;
  class Dest;

  struct converter
  {
    converter(Source *s) {}
    template<class D> operator D*();
  };

  Dest* f(Source* s) { return converter(s); }

when compiled by several different versions of g++ (I tried 4.3.4 and 4.4.1;
the person who asked me to reduce the test case found the problem on OSX with
some version of Apple-modified gcc 4.2), produces this symbol name for the
conversion operator:

  _ZN9convertercvPT_I4DestEEv

c++filt from binutils 2.19 will not demangle this symbol.  I have not been able
to figure out for certain whether this is an incorrect mangling, a demangler
bug, or both.  These variations demangle to close approximations of the right
thing:

  _ZN9convertercvT_IN4DestEEEv -> converter::operator Dest<Dest>()
  _ZN9convertercvT_IPN4DestEEEv -> converter::operator Dest*<Dest*>()

but 

  _ZN9convertercvPT_IN4DestEEEv

does not demangle, either.


-- 
           Summary: Templated conversion operator produces symbol name that
                    won't demangle
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zackw at panix dot com


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


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

end of thread, other threads:[~2022-11-20 20:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-41233-4@http.gcc.gnu.org/bugzilla/>
2012-01-06 18:01 ` [Bug c++/41233] Templated conversion operator produces symbol name that won't demangle jason at gcc dot gnu.org
2012-01-20  5:22 ` jason at gcc dot gnu.org
2012-01-20 10:41 ` paolo.carlini at oracle dot com
2012-11-26 10:24 ` glisse at gcc dot gnu.org
2022-11-20 19:40 ` pinskia at gcc dot gnu.org
2022-11-20 20:17 ` zack+srcbugz at owlfolio dot org
2009-09-03  0:21 [Bug c++/41233] New: " zackw at panix dot com
2010-02-25 16:33 ` [Bug c++/41233] " jim at clkda dot com
2010-02-25 16:35 ` jim at clkda dot com
2010-02-25 20:02 ` jim at clkda dot com
2010-05-29  8:17 ` gcc at magfr dot user dot lysator dot liu dot se

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