re PR c++/53025 ([C++11] noexcept operator depends on copy-elision)
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 2 Oct 2014 18:05:55 +0000 (18:05 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 2 Oct 2014 18:05:55 +0000 (18:05 +0000)
commit04bbdb1d08070dcc305d9de9e4d457fdee1116a5
tree46375b3a304b70039984cb2f5164e74f2b071655
parenta3ac63c46fd51fd3a531ae08e9f457e89e5744f9
re PR c++/53025 ([C++11] noexcept operator depends on copy-elision)

/cp
2014-10-02  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/53025
* cp-tree.h (struct saved_scope): Add noexcept_operand.
(cp_noexcept_operand): Define.
* call.c (build_over_call): Use it.
* parser.c (cp_parser_unary_expression, [RID_NOEXCEPT]): Likewise.
* pt.c (tsubst_copy_and_build, [NOEXCEPT_EXPR]): Likewise.

/testsuite
2014-10-02  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/53025
* g++.dg/cpp0x/noexcept23.C: New.
* g++.dg/cpp0x/noexcept24.C: Likewise.

From-SVN: r215813
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/noexcept23.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/noexcept24.C [new file with mode: 0644]