[LLVMbugs] [Bug 6674] New: clang++ emits V and U symbols while g++ does not emit anything

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 22 05:00:51 PDT 2010


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

           Summary: clang++ emits V and U symbols while g++ does not emit
                    anything
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


pes delta$ cat compatibility.cc
     namespace std  {
       template<class _CharT>     struct char_traits;
           typedef long streamsize;
       template<typename _CharT, typename _Traits = char_traits<_CharT> >    
class basic_istream;
     template<typename _InputIterator1, typename _InputIterator2,     typename
_OutputIterator>     _OutputIterator    
set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1,    
    _InputIterator2 __first2, _InputIterator2 __last2,         _OutputIterator
__result)     {
       }
     class ios_base   {
       };
     template<typename _CharT, typename _Traits>     class basic_ios : public
ios_base     {
       };
       template<typename _CharT, typename _Traits>     class basic_istream :
virtual public basic_ios<_CharT, _Traits>     {
         typedef basic_istream<_CharT, _Traits> __istream_type;
               virtual       ~basic_istream()       {
  }
           class sentry;
          __istream_type&       ignore(streamsize __n);
       };
       template<>     basic_istream<wchar_t>&     basic_istream<wchar_t>::    
ignore(streamsize __n);
       template<typename _CharT, typename _Traits>     class
basic_istream<_CharT, _Traits>::sentry     {
       };
        extern template class basic_istream<wchar_t>;
        template<>     basic_istream<wchar_t>&     basic_istream<wchar_t>::    
ignore(streamsize __n)     {
       }
      }


pes delta$ clang++ -O2 -c compatibility.cc && nm compatibility.o

0000000000000000 T _ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEl
                 U _ZNSt13basic_istreamIwSt11char_traitsIwEED0Ev
                 U _ZNSt13basic_istreamIwSt11char_traitsIwEED1Ev
0000000000000000 V _ZTISt13basic_istreamIwSt11char_traitsIwEE
0000000000000000 V _ZTISt8ios_base
0000000000000000 V _ZTISt9basic_iosIwSt11char_traitsIwEE
0000000000000000 V _ZTSSt13basic_istreamIwSt11char_traitsIwEE
0000000000000000 V _ZTSSt8ios_base
0000000000000000 V _ZTSSt9basic_iosIwSt11char_traitsIwEE
0000000000000000 V _ZTTSt13basic_istreamIwSt11char_traitsIwEE
                 U _ZTVN10__cxxabiv117__class_type_infoE
                 U _ZTVN10__cxxabiv120__si_class_type_infoE
                 U _ZTVN10__cxxabiv121__vmi_class_type_infoE
0000000000000000 V _ZTVSt13basic_istreamIwSt11char_traitsIwEE

pes delta$ g++ -O2 -c compatibility.cc && nm compatibility.o

0000000000000000 T _ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEl
                 U __gxx_personality_v0

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