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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 11 rejects the code, so does clang

t.ii: In function 'void f()':
t.ii:4:14: warning: division by zero [-Wdiv-by-zero]
    4 |   auto (*b)[0/0] = &a;
      |             ~^~
t.ii:4:10: error: 'b' declared as array of 'auto'
    4 |   auto (*b)[0/0] = &a;
      |          ^

Reply via email to