PR c++/60331
commitde48ad323bb0c177ddc436a31cc8bd3cf6e7b37f
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Mar 2014 09:30:10 +0000 (25 09:30 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Mar 2014 09:30:10 +0000 (25 09:30 +0000)
tree95d6d543658e14b87d9a9992c639185f613e010f
parent9ec2726163c3e2b765a8aadc362bae5f3fd78e83
PR c++/60331
* semantics.c (potential_constant_expression_1): Handle
DECL_EXPR.

* testsuite/libgomp.c++/udr-11.C: New test.
* testsuite/libgomp.c++/udr-12.C: New test.
* testsuite/libgomp.c++/udr-13.C: New test.
* testsuite/libgomp.c++/udr-14.C: New test.
* testsuite/libgomp.c++/udr-15.C: New test.
* testsuite/libgomp.c++/udr-16.C: New test.
* testsuite/libgomp.c++/udr-17.C: New test.
* testsuite/libgomp.c++/udr-18.C: New test.
* testsuite/libgomp.c++/udr-19.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208806 138bc75d-0d04-0410-961f-82ee72b054a4
12 files changed:
gcc/cp/ChangeLog
gcc/cp/semantics.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/udr-11.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c++/udr-12.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c++/udr-13.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c++/udr-14.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c++/udr-15.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c++/udr-16.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c++/udr-17.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c++/udr-18.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c++/udr-19.C [new file with mode: 0644]