https://bugs.llvm.org/show_bug.cgi?id=33162
Reid Kleckner <r...@google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |r...@google.com
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #1 from Reid Kleckner <r...@google.com> ---
Yes, this an undiagnosed implementation limit. If you compile your program with
assertions enabled, it will crash the compiler:
$ clang -c ~/Downloads/param_32k.c
Assertion failed: NumParams == params.size() && "function has too many
parameters", file C:\src\llvm-project\clang\lib\AST\Type.cpp, line 2662
I filed http://llvm.org/pr19607 when I discovered this:
> Relatedly, we cap out at 2**15 function parameters:
>
> $ cat t.py
> print 'void foo(',
> for i in range(0, 2**15):
> print 'int a%d,' % i,
> print 'int a%d);' % (i + 1)
>
> $ python t.py | clang -c -x c -
> Assertion failed: NumParams == params.size() && "function has too many
> parameters", file ..\tools\clang\lib\AST\Type.cpp, line 1604
*** This bug has been marked as a duplicate of bug 19607 ***
--
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