Re: C++ PATCH to allow VLAs with C++0x auto

2011-08-06 Thread Paolo Carlini
On 08/05/2011 09:10 PM, Jason Merrill wrote: Paolo asked for GCC to allow deduction of auto from a variable-length array. Since auto doesn't have the issues involved with normal template deduction from VLAs (namely, the type not being link-time constant), this seems reasonable to me. Thanks!

C++ PATCH to allow VLAs with C++0x auto

2011-08-05 Thread Jason Merrill
Paolo asked for GCC to allow deduction of auto from a variable-length array. Since auto doesn't have the issues involved with normal template deduction from VLAs (namely, the type not being link-time constant), this seems reasonable to me. Tested x86_64-pc-linux-gnu, applying to trunk. commit