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

           Summary: Assertion failed: (Arg < NumArgs && "Arg access out of
                    range!")
           Product: clang
           Version: trunk
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


Created an attachment (id=4994)
 --> (http://llvm.org/bugs/attachment.cgi?id=4994)
testcase

$ cat assert17-min.cc
extern "C"
char memmove();
int main() {
    memmove();
}

$ clang++ assert17-min.cc
Assertion failed: (Arg < NumArgs && "Arg access out of range!"), function
getArg, file
/projects/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Expr.h, line
1436.
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd8.0 -S -disable-free -main-file-name assert17-min.cc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/2.0
-ferror-limit 19 -fmessage-length 157 -fexceptions -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-zuINOB.s -x c++
assert17-min.cc 
1.    <eof> parser at end of file
2.    assert17-min.cc:3:5: LLVM IR generation of declaration 'main'
3.    assert17-min.cc:3:5: Generating code for declaration 'main'
4.    assert17-min.cc:3:12: LLVM IR generation of compound statement ('{}')
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)

$ clang --version
clang version 2.0 (trunk 105724)
Target: x86_64-unknown-freebsd8.0
Thread model: posix

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