[Bug c++/51352] g++ can't pass variable-length array as a function argument

uecker at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jan 16 07:13:49 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51352

uecker at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |uecker at gcc dot gnu.org

--- Comment #7 from uecker at gcc dot gnu.org ---

Let me second this request. It would be really useful for interoperability with
C headers if C++ accepted this syntax. Already accepting it only for the first
level where the bound is thrown away  would be really useful.  I run into this
problem all the time.

int foo(int N, char buf[N]);


More information about the Gcc-bugs mailing list