[LLVMbugs] [Bug 7332] New: Assertion failed: (Arg < NumArgs && "Arg access out of range!")
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jun 9 07:27:27 PDT 2010
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: unassignedclangbugs at nondot.org
ReportedBy: hinokind at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
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.
More information about the llvm-bugs
mailing list