<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/101819>101819</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [CUDA] device side asserts crash clang when using -g
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          OgnianM
      </td>
    </tr>
</table>

<pre>
    ```
$clang++ -g -x cuda -c test.cu
ptxas /tmp/test-sm_52-55e123.s, line 841; fatal   : Parsing error near '.': syntax error
ptxas fatal   : Ptx assembly aborted due to errors
clang++: error: ptxas command failed with exit code 255 (use -v to see invocation)
clang version 20.0.0git (https://github.com/llvm/llvm-project.git 5bd38a98d7585841c1688f6b9eee8ce150dc429c)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
clang++: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: /tmp/test-731cd8.cu
clang++: note: diagnostic msg: /tmp/test-sm_52-df7b05.cu
clang++: note: diagnostic msg: /tmp/test-731cd8.sh
clang++: note: diagnostic msg: 

********************
```

test.cu:
```
#include <cassert>

__global__ void test(int x) { assert(x > 10); }


int main() {
        test<<<1,1>>>(5);
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVV2P4yYU_TXk5cqRje0YP_ghn7sjTTuj3az6GGG4cWgJRIAzmX9fYXvSmaqV2t2VEJZ87zncD-6Be686g9iQckXKzYz34WRd89QZxc0vs9bK14Ys0mmlG5IuCS2E5qYjdEXoCpIOkhuIXnJIBAT0YS760fMSbtwDobtwvsQdfUj8-VDSpCwxo_ncE7oGrQwCKzKSr-DIA9cAQPIlPHPnlekAnbMODHIHhFZzQqto9a8m8NtofH_aB4ZwA-49nlv9Cry1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