OSDN Git Service

Fix PR c++/36408
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Nov 2009 22:55:52 +0000 (22:55 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Nov 2009 22:55:52 +0000 (22:55 +0000)
commitd9655b3158262e243e4dd8ac0dd6660787b86858
tree51b5fc9ae82f2b8773076c0364709413c0897090
parentf80617042e9bdbdd520ba7dad7e5fbb4c2cc90e4
Fix PR c++/36408

gcc/cp/ChangeLog:

PR c++/36408
* cp-tree.h (empty_expr_stmt_p): Declare ...
* semantics.c (empty_expr_stmt_p): ... this.
* pt.c (tsubst_copy_and_build) <STMT_EXPR>: Use it.

gcc/testsuite/ChangeLog:
PR c++/36408
* g++.dg/template/stmtexpr2.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154731 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/stmtexpr2.C [new file with mode: 0644]