[LLVMbugs] [Bug 14118] New: missing namespace in mangling

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 18 05:37:45 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=14118

             Bug #: 14118
           Summary: missing namespace in mangling
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


given

namespace mozilla {
  template<typename From> struct IsConvertible {
    static const bool value =true;
  };
  template<bool B> struct EnableIf {
    typedef int Type;
  };
    template <typename S>  void       Handle(S x,      typename
EnableIf<IsConvertible<S>::value>::Type dummy) {
    }
  template void Handle( int x,      typename
EnableIf<IsConvertible<int>::value>::Type dummy );
}

gcc produces

_ZN7mozilla6HandleIiEEvT_NS_8EnableIfIXsrNS_13IsConvertibleIS1_EE5valueEE4TypeE

and clang produces

_ZN7mozilla6HandleIiEEvT_NS_8EnableIfIXsr13IsConvertibleIS1_EE5valueEE4TypeE

looks like clang is missing the namespace prefix for IsConvertible.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list