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++/81942] ICE on empty constexpr constructor with C++14


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

--- Comment #16 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Tue Sep  5 13:33:44 2017
New Revision: 251714

URL: https://gcc.gnu.org/viewcvs?rev=251714&root=gcc&view=rev
Log:
/cp
2017-09-05  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/81942
        * cp-tree.h (LABEL_DECL_CDTOR): Add and document.
        * decl.c (start_preparsed_function): Set LABEL_DECL_CDTOR when
        creating cdtor_label.
        * constexpr.c (returns): Add the case of a constructor/destructor
        returning via a LABEL_DECL_CDTOR label.
        (cxx_eval_constant_expression, case [GOTO_EXPR]): Likewise.

/testsuite
2017-09-05  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/81942
        * g++.dg/cpp1y/constexpr-return3.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-return3.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog

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