<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [12 regression] error: unable to execute command: Segmentation fault (core dumped)"
   href="https://bugs.llvm.org/show_bug.cgi?id=51154">51154</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[12 regression] error: unable to execute command: Segmentation fault (core dumped)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>12.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>anbu1024.me@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ cat 10.c 

struct S
{
  char data[16];
};

struct S sx;

int y;

char z[((sizeof(0, ((sx, y)).data)) == (sizeof(char *))) ? (1) : (-1)];

char z[((sizeof(0, (sx = y).data)) == (sizeof(char *))) ? (1) : (-1)];

--------------------------------

$ clang-sp11 --version
clang version 11.0.0 (<a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a>
0160ad802e899c2922bc9b29564080c22eb0908c)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir:
/home/tom/Documents/llvm/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin

--------------------------------

$ clang-sp11 10.c 
10.c:11:29: error: member reference base type 'int' is not a structure or union
char z[((sizeof(0, ((sx, y)).data)) == (sizeof(char *))) ? (1) : (-1)];
                   ~~~~~~~~~^~~~~
10.c:13:24: error: assigning to 'struct S' from incompatible type 'int'
char z[((sizeof(0, (sx = y).data)) == (sizeof(char *))) ? (1) : (-1)];
                       ^ ~
2 errors generated.

--------------------------------

$ clang-12 --version
clang version 12.0.0 (<a href="https://github.com/llvm/llvm-project/">https://github.com/llvm/llvm-project/</a>
b978a93635b584db380274d7c8963c73989944a1)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir:
/home/tom/Documents/llvm/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04/bin

--------------------------------

$ clang-12 10.c 
10.c:11:29: error: member reference base type 'int' is not a structure or union
char z[((sizeof(0, ((sx, y)).data)) == (sizeof(char *))) ? (1) : (-1)];
                   ~~~~~~~~~^~~~~
10.c:13:24: error: assigning to 'struct S' from incompatible type 'int'
char z[((sizeof(0, (sx = y).data)) == (sizeof(char *))) ? (1) : (-1)];
                       ^ ~
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments:
/home/tom/Documents/llvm/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-12
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all
--mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names
-main-file-name 10.c -mrelocation-model static -mframe-pointer=all -fmath-errno
-fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64
-tune-cpu generic -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir
/home/tom/Documents/llvm/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04/lib/clang/12.0.0
-internal-isystem /usr/local/include -internal-isystem
/home/tom/Documents/llvm/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04/lib/clang/12.0.0/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-fdebug-compilation-dir
/media/Store/Project/C-compiler/ZSmith/data/bug-llvm-20210721/bug_dir/proc.0/deal
-ferror-limit 19 -fgnuc-version=4.2.1 -fcolor-diagnostics -faddrsig -o
/tmp/10-54d374.o -x c 10.c
1.      10.c:13:70: current parser token ';'
#0 0x00000000024ab943 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/home/tom/Documents/llvm/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-12+0x24ab943)
#1 0x00000000024a989e llvm::sys::RunSignalHandlers()
(/home/tom/Documents/llvm/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-12+0x24a989e)
#2 0x00000000024abdef SignalHandler(int)
(/home/tom/Documents/llvm/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-12+0x24abdef)
#3 0x00007f3017c7b3c0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x153c0)
#4 0x00000000043fc561
clang::ASTContext::propertyTypesAreCompatible(clang::QualType, clang::QualType)
(/home/tom/Documents/llvm/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/clang-12+0x43fc561)
#5 0x0000000008ef55e8 
clang-12: error: unable to execute command: Segmentation fault (core dumped)
clang-12: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 12.0.0 (<a href="https://github.com/llvm/llvm-project/">https://github.com/llvm/llvm-project/</a>
b978a93635b584db380274d7c8963c73989944a1)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir:
/home/tom/Documents/llvm/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-20.04/bin
clang-12: note: diagnostic msg: 
********************

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

********************</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>