[llvm-bugs] [Bug 33162] New: Many arguments to function causes false use of undeclared identifier
llvm-bugs at lists.llvm.org
Wed May 24 19:41:00 PDT 2017
Bug ID: 33162
Summary: Many arguments to function causes false use of
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: wsnyder at wsnyder.org
CC: llvm-bugs at lists.llvm.org
Created attachment 18506
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
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...
More information about the llvm-bugs