This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21113] Jumps into VLA or VM scope not rejected for C++
- From: "jsm28 at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 May 2005 11:32:23 -0000
- Subject: [Bug c++/21113] Jumps into VLA or VM scope not rejected for C++
- References: <20050419212056.21113.jsm28@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jsm28 at gcc dot gnu dot org 2005-05-01 11:32 -------
It should be possible to use the existing machinery in the C++ front end which
diagnoses jumps into the scope of initialized or non-POD variables to diagnose
jumps into VLA or VM scope (treating VLA or VM declarations as a special case of
being initialized; after all, the artificial variable with the array size is
initialized by the declaration).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21113