On Tue, Dec 16, 2008 at 9:43 AM, Michel Van den Bergh <michel.vandenbe...@uhasselt.be> wrote: > Andrew Haley wrote: >> >> Andrew Thomas Pinski wrote: >> >>> >>> C++98 is not C99 :) there is no rvalue to lvalue conversion for rvalue >>> arrays in C++98. Also this code is still undefined C99 but will most >>> likely become valid C1x. > Ok now I understand. I assume this behaviour is not triggered often as in C > it is > not so common to have an array which is an rvalue.
See also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37755 where it explains what is going on. Thanks, Andrew Pinski