[Bug c++/92745] [8/9/10 Regression] Initializing array with vec4 results in compile error

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 2 16:01:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92745

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
creduce gives:
template <typename a, int b> struct c { typedef a d[b]; };
template <typename a, int b> struct h { typename c<a, b>::d e; };
template <class f> using g __attribute__((vector_size(sizeof(f)))) = float;
void i() { h<g<float>, 4>{g<float>{}, {}}; }
as something that used to be accepted and is rejected afterwards.  Not sure if
that error isn't valid though.


More information about the Gcc-bugs mailing list