[LLVMbugs] [Bug 9835] Clang cannot decay [] to * automatically
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue May 3 23:27:02 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=9835
Eli Friedman <sharparrow1 at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |INVALID
--- Comment #1 from Eli Friedman <sharparrow1 at yahoo.com> 2011-05-04 01:27:01 CDT ---
Looks like a combination of a gcc bug and a bug in the source code; take the
following:::
typedef int x;
void GetBitmapAlpha(int __restrict__ alpha[]);
void GetBitmapAlpha(x __restrict__ alpha[]);
gcc in C mode, and clang, reject both versions. gcc in C++ mode, for some
strange reason, accepts the second version.
--
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