[Bug c++/13241] New: Incorrect mangling of template arguments

nathan at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Nov 30 18:01:00 GMT 2003


extern "C" void Foo ();
namespace NMS 
{
  extern "C" int V;
}

template <void (*)()> struct S {};
template <int *> struct T {};

void f (S<Foo>){} // should be _Z1f1SIXadL_Z3FooEEE

void g (T<&NMS::V>){} // should be _Z1g1TIXadL_Z1VEEE

-- 
           Summary: Incorrect mangling of template arguments
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P1
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: nathan at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: -
  GCC host triplet: -
GCC target triplet: -


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



More information about the Gcc-bugs mailing list