[LLVMbugs] [Bug 9835] New: Clang cannot decay [] to * automatically
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue May 3 19:05:42 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=9835
Summary: Clang cannot decay [] to * automatically
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nowar100 at gmail.com
CC: llvmbugs at cs.uiuc.edu
When I compile skia source code, it complains:
src/src/core/SkBitmap.cpp:1047:57: error: restrict requires a pointer or
reference ('uint8_t' (aka 'unsigned char') is invalid)
static bool GetBitmapAlpha(const SkBitmap& src, uint8_t __restrict__ alpha[],
~~~~~~~~^~~~~~~~~~~~
We see that parameter alpha could be decay to a pointer. But Clang doesn't
know.
Is this a bug?
P.S.
I don't think I could upload the SkBitmap.cpp. It is from
http://www.spec.org/.
--
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