This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80415] [7 Regression] bogus "invalid initialization of reference" error
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 17 Apr 2017 19:39:33 +0000
- Subject: [Bug c++/80415] [7 Regression] bogus "invalid initialization of reference" error
- Auto-submitted: auto-generated
- References: <bug-80415-4@http.gcc.gnu.org/bugzilla/>
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