From 3d1ba08f49b0ccf9caba669564190f6b5afc7b6f Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 23 Sep 2016 18:57:23 +0200 Subject: [PATCH] vec.h (vnull::operator vec): Add constexpr keyword for C++11 and later. * vec.h (vnull::operator vec): Add constexpr keyword for C++11 and later. From-SVN: r240443 --- gcc/ChangeLog | 5 +++++ gcc/vec.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 023c1722d3e..919b9d8693b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-09-23 Jakub Jelinek + + * vec.h (vnull::operator vec): Add constexpr keyword for + C++11 and later. + 2016-09-23 Doug Gilmore PR tree-optimization/77654 diff --git a/gcc/vec.h b/gcc/vec.h index eb8c27024f4..959871bcc1e 100644 --- a/gcc/vec.h +++ b/gcc/vec.h @@ -414,6 +414,9 @@ struct GTY((user)) vec struct vnull { template +#if __cpp_constexpr >= 200704 + constexpr +#endif operator vec () { return vec(); } }; extern vnull vNULL; -- 2.30.2