[llvm-bugs] [Bug 33162] New: Many arguments to function causes false use of undeclared identifier
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed May 24 19:41:00 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33162
Bug ID: 33162
Summary: Many arguments to function causes false use of
undeclared identifier
Product: clang
Version: 3.8
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: wsnyder at wsnyder.org
CC: llvm-bugs at lists.llvm.org
Created attachment 18506
--> https://bugs.llvm.org/attachment.cgi?id=18506&action=edit
param_32k.c test file
With the attached file,
$ clang ./param_32k.c
./param_32k.c:4103:18: error: use of undeclared identifier 'd32767'; did you
mean 'd32768'?
This program works with GCC. It appears that clang gets confused by the use of
over 32,768 arguments to this function. Perhaps a "signed short" is used
somewhere by mistake?
While this seems contrived, this is machine generated code (probably obviously)
from a Verilog-to-C++ compiler called Verilator.
It would be nice to have more than 64K arguments allowed, as at present clang
does not have any other limits I am aware of that Verilator has found and needs
to work around (unlike MSVC++), but if not desired to be supported a clean
error message should be provided (presumably at the 32K-1st argument).
--
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/20170525/b30e6117/attachment.html>
More information about the llvm-bugs
mailing list