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

             Bug #: 14117
           Summary: Mangler closing scope too many times?
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++11
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


Given

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 _Z6HandleIiEvT_N8EnableIfIXsr13IsConvertibleIS0_E5valueEE4TypeE
and clang produces
_Z6HandleIiEvT_N8EnableIfIXsr13IsConvertibleIS0_EE5valueEE4TypeE. Is clang
closing scopes too many times?

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to