* constexpr.c (literal_type_p): Return true for void type in C++14.
commitdd418b395da1d1dece33d60ea8268a4a9fbf8627
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Dec 2014 15:26:10 +0000 (1 15:26 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Dec 2014 15:26:10 +0000 (1 15:26 +0000)
tree0cafcc47e67ab0a33504262784e400ad017401b1
parentadedbdfa33b73935e830880ac90578f7f53cc344
* constexpr.c (literal_type_p): Return true for void type in C++14.

* g++.dg/cpp0x/constexpr-function2.C: Limit dg-error to C++11.
* g++.dg/cpp0x/constexpr-neg1.C: Likewise.
* g++.dg/cpp1y/constexpr-void1.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218220 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-function2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-neg1.C
gcc/testsuite/g++.dg/cpp1y/constexpr-void1.C [new file with mode: 0644]