This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28906] [4.2 regression] rejects valid arrays
- 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: 31 Aug 2006 10:59:29 -0000
- Subject: [Bug c++/28906] [4.2 regression] rejects valid arrays
- References: <bug-28906-12387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pinskia at gcc dot gnu dot org 2006-08-31 10:59 -------
Yes this was casued by that patch.
Anyways we do:
1627 /* ??? The middle-end will error on us for building a VLA outside
a
1628 function context. Methinks that's not it's purvey. So we'll
do
1629 our own VLA layout later. */
1630 vla_p = true;
(gdb) l
1631 full_type = build_cplus_array_type (type, NULL_TREE);
1632 index = convert (sizetype, nelts);
1633 index = size_binop (MINUS_EXPR, index, size_one_node);
1634 TYPE_DOMAIN (full_type) = build_index_type (index);
Which is the problem. I will look into this further either this long weekend
or later today.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |27184
nThis| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28906