------- Comment #6 from pinskia at gcc dot gnu dot org 2007-04-30 15:58 ------- > Actually, I don't understand why we aren't just calling > build_cplus_array_type(type, index) to create full_type. Why do we need a
You missed the comment: /* ??? The middle-end will error on us for building a VLA outside a function context. Methinks that's not it's purvey. So we'll do our own VLA layout later. */ The obvious testcase fails when you change this into using build_cplus_array_type: int n; int *a = new int[n]; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31724