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

Alex Coplan <acoplan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2020-11-19
     Ever confirmed|0                           |1
                 CC|                            |acoplan at gcc dot gnu.org,
                   |                            |richard.sandiford at arm dot 
com
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Alex Coplan <acoplan at gcc dot gnu.org> ---
Confirmed. Here is a simpler testcase for the -O0 ICE:

#include <arm_sve.h>
template <typename b, int c> struct d { b x[c]; };
d<svfloat32_t, 2> a;

Note that, without the template:

#include <arm_sve.h>
svfloat32_t a[2];

is just rejected:

test.cc:2:13: error: array elements cannot have SVE type 'svfloat32_t'
    2 | svfloat32_t a[2];
      |             ^

as is:

#include <arm_sve.h>
struct d {
  svfloat32_t a[2];
};

with the same error message.

Reply via email to