aboutsummaryrefslogtreecommitdiff
path: root/gcc/vec.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-09-23 18:57:23 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2016-09-23 18:57:23 +0200
commit3d1ba08f49b0ccf9caba669564190f6b5afc7b6f (patch)
tree3318a8c29f4dbd8fb20143ddbe708cee00468810 /gcc/vec.h
parent3b31f720966b5b8ad2f9266fc4eec73c18ed3ddb (diff)
downloadgcc-3d1ba08f49b0ccf9caba669564190f6b5afc7b6f.zip
gcc-3d1ba08f49b0ccf9caba669564190f6b5afc7b6f.tar.gz
gcc-3d1ba08f49b0ccf9caba669564190f6b5afc7b6f.tar.bz2
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
Diffstat (limited to 'gcc/vec.h')
-rw-r--r--gcc/vec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/vec.h b/gcc/vec.h
index eb8c270..959871b 100644
--- a/gcc/vec.h
+++ b/gcc/vec.h
@@ -414,6 +414,9 @@ struct GTY((user)) vec
struct vnull
{
template <typename T, typename A, typename L>
+#if __cpp_constexpr >= 200704
+ constexpr
+#endif
operator vec<T, A, L> () { return vec<T, A, L>(); }
};
extern vnull vNULL;