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

            Bug ID: 88128
           Summary: G++ should implement CWG 330
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ostash at ostash dot kiev.ua
  Target Milestone: ---

GCC rejects following code:


int* (*xx)[];
const int* const(*yy)[];
yy = xx;


while Clang started accepting since 7.0 when they implemented CWG 330.

Without this it is very hard to implement std::span, as its constructors
availability are defined in terms of pointer to array convertibility (see
[span.cons]).

Reply via email to