[llvm-bugs] [Bug 40207] New: Accepts program with invalid abstract-declarator grammar.

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 2 13:37:13 PST 2019


            Bug ID: 40207
           Summary: Accepts program with invalid abstract-declarator
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: anders.granlund.0 at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

Test case (prog.c):

  void f(int [const *]);

  int main() {}

Compilation command line:

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

Observed behaviour:

  No error messages outputed.

Expected behaviour:

  An error message outputed.

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

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190102/be5d6f84/attachment.html>

More information about the llvm-bugs mailing list