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

            Bug ID: 88667
           Summary: Accepts program with invalid abstract-declarator
                    grammar.
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anders.granlund.0 at gmail dot com
  Target Milestone: ---

Test case (prog.c):

  void f(int [const *]);

  int main() {}

Compilation command line:

  gcc prog.c -Wall -Wextra -std=c11 -pedantic-errors

Observed behaviour:

  No error messages outputed.

Expected behaviour:

  An error message outputed.

  [const *]  is an invalid abstract-declarator according to the grammar in
6.7.7/1
  (no type qualifiers allowed in [*]).

Reply via email to