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: unassignedclangb...@nondot.org
          Reporter: wsny...@wsnyder.org
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to