[Bug c++/31724] [4.3 Regression] More "same canonical type node" fun

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Apr 30 14:58:00 GMT 2007



------- 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



More information about the Gcc-bugs mailing list