[Bug c++/78896] [C++17] Segmentation fault occurs when use variable initialized using structured binding with capture-by-ref lambda

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 25 22:37:00 GMT 2017


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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Jan 25 22:36:18 2017
New Revision: 244909

URL: https://gcc.gnu.org/viewcvs?rev=244909&root=gcc&view=rev
Log:
        PR c++/78896
        * decl.c (cp_finish_decomp): Disallow memberwise decomposition of
        lambda expressions.

        * g++.dg/cpp1z/decomp24.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/decomp24.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list