[LLVMbugs] [Bug 14117] New: Mangler closing scope too many times?
    bugzilla-daemon at llvm.org 
    bugzilla-daemon at llvm.org
       
    Thu Oct 18 05:33:50 PDT 2012
    
    
  
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: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
    
    
More information about the llvm-bugs
mailing list