https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70385
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-07-01
CC| |msebor at gcc dot gnu.org
Blocks| |54367
Ever confirmed|0 |1
Known to fail| |5.3.0, 6.1.0, 7.0
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed with today's top of trunk (7.0). The code never seems to have been
accepted.
$ cat xxx.c && /build/gcc-trunk-svn/gcc/xgcc -B /build/gcc-trunk-svn/gcc -S
-Wall -Wextra -Wpedantic -xc++ xxx.c
int const i = 0;
auto test = [&j = i]() { };
xxx.c:2:13: error: binding ‘const int’ to reference of type ‘int&’ discards
qualifiers
auto test = [&j = i]() { };
^
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367
[Bug 54367] [meta-bug] lambda expressions