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++/28903] [4.2 Regression] Rejects VLA in template class's member with using



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-09-04 02:32 -------
The problem is here:
        /* The array dimension behaves like a non-type template arg,
           in that we want to fold it as much as possible.  */
        max = tsubst_template_arg (omax, args, complain, in_decl);
        max = fold_decl_constant_value (max);

It actually does not behave like one if we the decl is inside a function so
that you can use VLAs.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28903


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