This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]