[Bug c++/5435] Resolution of templates with VLAs
jason at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Mar 3 21:24:00 GMT 2009
------- Comment #9 from jason at gcc dot gnu dot org 2009-03-03 21:23 -------
int (*)[argc] is not a valid template type argument, as it depends on a runtime
value, and template arguments need to be known at compile time. If you want to
pass your VLA to a template function, you need to let it decay to int*.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|SUSPENDED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5435
More information about the Gcc-bugs
mailing list