[LLVMbugs] [Bug 6635] New: clang does not emit alias to a C++ struct

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 17 08:12:58 PDT 2010


           Summary: clang does not emit alias to a C++ struct
           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 __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
               template<typename _CharT>     struct char_traits     {
              namespace std __attribute__ ((__visibility__ ("default"))) {
               template<class _CharT>     struct char_traits : public
__gnu_cxx::char_traits<_CharT>     {
                 typedef char char_type;
                  static bool       eqXX(const char_type& __c1, const
char_type& __c2)       {
                bool (* __p1)(const char&, const char&) =
            extern "C" void _X_ZNSt11char_traitsIcE2eqERKcS2_() __attribute__

pes delta$ g++ -c compatibility.cc > /dev/null && nm compatibility.o
0000000000000000 T _X_ZNSt11char_traitsIcE2eqERKcS2_
0000000000000000 W _ZNSt11char_traitsIcE4eqXXERKcS2_
0000000000000000 D _ZSt4__p1
                 U __gxx_personality_v0

pes delta$ clang++ -c compatibility.cc > /dev/null && nm compatibility.o
0000000000000000 W _ZNSt11char_traitsIcE4eqXXERKcS2_
                 U _ZNSt11char_traitsIcE4eqXXERKcS2_1
0000000000000000 D _ZSt4__p1

note the missing T _X_ZNSt11char_traitsIcE2eqERKcS2_

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