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

           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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


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

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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to