diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2017-09-05 13:33:44 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2017-09-05 13:33:44 +0000 |
commit | d49318d9bc3e63251aada27b322e7756eab19884 (patch) | |
tree | c73edc1922313f044d57f416d20fd7978d7f8254 /gcc/function.c | |
parent | ae85ad3a95d6df3c4131d02fd327809a29d10b33 (diff) | |
download | gcc-d49318d9bc3e63251aada27b322e7756eab19884.zip gcc-d49318d9bc3e63251aada27b322e7756eab19884.tar.gz gcc-d49318d9bc3e63251aada27b322e7756eab19884.tar.bz2 |
re PR c++/81942 (ICE on empty constexpr constructor with C++14)
/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.
From-SVN: r251714
Diffstat (limited to 'gcc/function.c')
0 files changed, 0 insertions, 0 deletions