[llvm-bugs] [Bug 42068] New: Assertion `vlaSize && "no size for VLA!"` when VLA typedef is placed outside of openmp region.

via llvm-bugs llvm-bugs at lists.llvm.org
Thu May 30 03:08:14 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42068

            Bug ID: 42068
           Summary: Assertion `vlaSize && "no size for VLA!"` when VLA
                    typedef is placed outside of openmp region.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: OpenMP
          Assignee: unassignedclangbugs at nondot.org
          Reporter: Paul.Walker at arm.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 22050
  --> https://bugs.llvm.org/attachment.cgi?id=22050&action=edit
Original source that triggers the assertion.

The attached source file triggers the assertion `vlaSize && "no size for VLA!"`
when built with:

  clang -fopenmp -c openmp-with-vla.c

There is no assertion when not using -fopenmp nor when the typedef is moved
inside the openmp region (see commented typedef).

-- 
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/20190530/15b1eb54/attachment.html>


More information about the llvm-bugs mailing list