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

            Bug ID: 124199
           Summary: [13/14/15/16 Regression] Declaration conditions with
                    array declarator operators are incorrectly rejected
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: luigighiron at gmail dot com
  Target Milestone: ---

The following code is incorrectly rejected by GCC:

int main(){
    if(int(*p)[]=0);
}

This error seems specific to array declarator operators, function declarator
operators do not cause the same issue. Clang, MSVC, and GCC before GCC 9 accept
this.

Reply via email to