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++/80415] [7 Regression] bogus "invalid initialization of reference" error


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80415

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Apr 17 19:39:00 2017
New Revision: 246954

URL: https://gcc.gnu.org/viewcvs?rev=246954&root=gcc&view=rev
Log:
        PR c++/80415 - wrong error with default arg and array reference.

        * tree.c (lvalue_kind): Return clk_class for an array prvalue.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/initlist-array5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/tree.c

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