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.
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92745
Marek Polacek changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned a
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92745
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
--- Comment
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92745
Richard Biener changed:
What|Removed |Added
Priority|P3 |P2
Status|UNCONFIRMED