gcc/testsuite/g++.dg/ext/vector42.C
raw| 1 | // PR c++/107295 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | template <typename T> struct A { |
| 5 | typedef T __attribute__((vector_size (sizeof (int)))) V; |
| 6 | }; |
| 7 | template <int, typename T> using B = typename A<T>::V; |
| 8 | template <typename T> using V = B<4, T>; |
| 9 | using F = V<float>; |
| 10 | constexpr F a = F () + 0.0f; |
| 11 | constexpr F b = F () + (float) 0.0; |
| 12 | constexpr F c = F () + (float) 0.0L; |