[LLVMbugs] [Bug 6677] New: Assertion failed: (DD->isUsed() && "Sema doesn't consider destructor as used."), function GetOrCreateLLVMFunction, file CodeGenModule.cpp, line 814.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 22 10:57:54 PDT 2010


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

           Summary: Assertion failed: (DD->isUsed() && "Sema doesn't
                    consider destructor as used."), function
                    GetOrCreateLLVMFunction, file CodeGenModule.cpp, line
                    814.
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu


pes delta$ cat globals_io.cc
    typedef long __int64_t;
     typedef __int64_t __ptrdiff_t;
          typedef union {
    }
     __mbstate_t;
     typedef __ptrdiff_t ptrdiff_t;
           extern "C" {
     } 
       namespace std __attribute__ ((__visibility__ ("default"))) {
       template<class _CharT>     struct char_traits;
      }
      namespace std __attribute__ ((__visibility__ ("default"))) {
           typedef ptrdiff_t streamsize;
       template<typename _CharT, typename _Traits>     class basic_streambuf   
 {
      public:        virtual       ~basic_streambuf()       {
  }
       };
        template<typename _CharT>     class __basic_file;
        template<>     class __basic_file<char>     {
       };
        template<typename _CharT, typename _Traits = std::char_traits<_CharT> >
    class stdio_sync_filebuf : public std::basic_streambuf<_CharT, _Traits>    
{
       public:        typedef _CharT char_type;
          virtual std::streamsize       xsgetn(char_type* __s, std::streamsize
__n);
       };
       template<>     inline std::streamsize    
stdio_sync_filebuf<wchar_t>::xsgetn(wchar_t* __s, std::streamsize __n)     {
       }
       extern template class stdio_sync_filebuf<wchar_t>;
       }

pes delta$ clang++ -c -O2 globals_io.cc
globals_io.cc:26:8: warning: control reaches end of non-void function
[-Wreturn-type]
       }
       ^
Assertion failed: (DD->isUsed() && "Sema doesn't consider destructor as
used."), function GetOrCreateLLVMFunction, file CodeGenModule.cpp, line 814.
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd8.0 -S -disable-free -main-file-name globals_io.cc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.5 -O2
-fmessage-length 152 -fexceptions -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-zAuNju.s -x c++ globals_io.cc
1.      <eof> parser at end of file
2.      globals_io.cc:12:17: LLVM IR generation of declaration 'std'
3.      globals_io.cc:25:79: Generating code for declaration
'std::stdio_sync_filebuf<wchar_t, std::char_traits<wchar_t> >::xsgetn'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)

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