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

2019-12-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92745 --- Comment #7 from Marek Polacek --- Author: mpolacek Date: Fri Dec 20 23:30:04 2019 New Revision: 279686 URL: https://gcc.gnu.org/viewcvs?rev=279686&root=gcc&view=rev Log: PR c++/92745 - bogus error when initializing array of vectors.

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

2019-12-16 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92745 --- Comment #6 from Marek Polacek --- Potential fix: --- gcc/cp/decl.c +++ gcc/cp/decl.c @@ -6408,11 +6408,11 @@ reshape_init_r (tree type, reshape_iter *d, bool first_initializer_p, /* For a nested compound literal, there is no need t

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

2019-12-10 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92745 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

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

2019-12-02 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92745 --- Comment #5 from Jakub Jelinek --- Better testcase: template struct c { typedef a d[b]; }; template struct array { typename c::d e; a operator[](long); }; template using vec4_t __attribute__((vector_size(4*sizeof(T = float; auto tran

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

2019-12-02 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92745 --- Comment #4 from Jakub Jelinek --- creduce gives: template struct c { typedef a d[b]; }; template struct h { typename c::d e; }; template using g __attribute__((vector_size(sizeof(f = float; void i() { h, 4>{g{}, {}}; } as something tha

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

2019-12-02 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92745 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

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

2019-12-02 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92745 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2

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

2019-12-01 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92745 Richard Biener changed: What|Removed |Added Priority|P3 |P2 Status|UNCONFIRMED