[LLVMbugs] [Bug 23151] New: Clang VLA internal failure.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Apr 7 10:02:48 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=23151
Bug ID: 23151
Summary: Clang VLA internal failure.
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: release blocker
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: sasho648 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
This code gives internal failure error no both C & C++ Clang compiler:
#include <stddef.h>
#include <stdio.h>
void func(size_t sz, int (*arr)[*])
{
printf("%lu", sizeof(*arr) / sizeof(int));
}
int main()
{
size_t sz = 3;
int arr[sz];
func(sz, &arr);
}
Life example:
http://melpon.org/wandbox/permlink/ygeV7ELkk49jRZFS
--
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/20150407/518273d3/attachment.html>
More information about the llvm-bugs
mailing list