[llvm-bugs] [Bug 51310] New: Clang compiler error: invalid subrange count !143 = !DISubrange(count: -36)

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 2 11:48:05 PDT 2021


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

            Bug ID: 51310
           Summary: Clang compiler error: invalid subrange count !143 =
                    !DISubrange(count: -36)
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dvdicocco at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Here is the entire error message. When compiling volume.c, I was met with this
error. I tried to download the requested files at the end, but the IDE would
not let me do so. 

$ make volume
clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare
-Wno-unused-parameter -Wno-unused-variable -Wshadow    volume.c  -lcrypt -lcs50
-lm -o volume
invalid subrange count
!143 = !DISubrange(count: -36)
fatal error: error in backend: Broken module found, compilation aborted!
clang-10: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 10.0.0 (git at github.com:apple/llvm-project.git
3093af41dd65ad466dcd5603e9289244edfee4f5)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-10: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source,
and associated run script.
clang-10: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-10: note: diagnostic msg: /tmp/volume-1e7ba8.c
clang-10: note: diagnostic msg: /tmp/volume-1e7ba8.sh
clang-10: note: diagnostic msg:

********************
make: *** [<builtin>: volume] Error 70

-- 
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/20210802/8381d4a3/attachment.html>


More information about the llvm-bugs mailing list