[LLVMbugs] [Bug 23291] New: sizeof(vla) leads to segmentation fault
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Apr 20 00:57:06 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=23291
Bug ID: 23291
Summary: sizeof(vla) leads to segmentation fault
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: ahmad at a3f.at
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 14228
--> https://llvm.org/bugs/attachment.cgi?id=14228&action=edit
Clang's outut before segfaulting
Following crashes my Clang:
void sz(int (*a)[*])
{
(void)sizeof *a;
}
My setup:
$ clang -v
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix
On GCC, this error is printed instead: "error: '[*]' not allowed in other than
function prototype scope" which looks like the correct action.
Output and source files attached
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150420/0e9d6b26/attachment.html>
More information about the llvm-bugs
mailing list