This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/42656] VLA as function parameter loses sizeof property
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jan 2010 10:20:48 -0000
- Subject: [Bug c/42656] VLA as function parameter loses sizeof property
- References: <bug-42656-18648@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2010-01-08 10:20 -------
No, the manual is just a little hard to read really. The point about sizeof is
not connected with arguments at all but the normal VLA interface. Also the VLA
decays to a pointer in this case as required by the normal argument C90/C99
decaying rules.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42656