[LLVMbugs] [Bug 8839] New: Crash with extern "C" library builtin definition

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 21 11:20:52 PST 2010


           Summary: Crash with extern "C" library builtin definition
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: dgregor at apple.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

Reported on IRC:

terfin:clang dgregor$ cat t.cpp 
extern "C" char memmove();

int main() {
  return memmove();

terfin:clang dgregor$ clang++ t.cpp 
Assertion failed: (Arg < NumArgs && "Arg access out of range!"), function
getArg, file
/Volumes/Data/dgregor/Projects/llvm/tools/clang/include/clang/AST/Expr.h, line

The problem is that we still treat inconsistent declarations of library
builtins as builtins, when we should treat them as normal user functions.

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