projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b31f72
)
vec.h (vnull::operator vec): Add constexpr keyword for C++11 and later.
author
Jakub Jelinek
<jakub@redhat.com>
Fri, 23 Sep 2016 16:57:23 +0000
(18:57 +0200)
committer
Jakub Jelinek
<jakub@gcc.gnu.org>
Fri, 23 Sep 2016 16:57:23 +0000
(18:57 +0200)
* vec.h (vnull::operator vec): Add constexpr keyword for
C++11 and later.
From-SVN: r240443
gcc/ChangeLog
patch
|
blob
|
history
gcc/vec.h
patch
|
blob
|
history
diff --git
a/gcc/ChangeLog
b/gcc/ChangeLog
index 023c1722d3e05988dea4fc9955162e31e6f22f90..919b9d8693bb4731e47d9becc2674dfea485964e 100644
(file)
--- a/
gcc/ChangeLog
+++ b/
gcc/ChangeLog
@@
-1,3
+1,8
@@
+2016-09-23 Jakub Jelinek <jakub@redhat.com>
+
+ * vec.h (vnull::operator vec): Add constexpr keyword for
+ C++11 and later.
+
2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
PR tree-optimization/77654
diff --git
a/gcc/vec.h
b/gcc/vec.h
index eb8c27024f4e6c983ea33b59d003ab7f661ba5d5..959871bcc1ed5676ef5c32405b8b9a656c587da5 100644
(file)
--- 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;