<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/154406>154406</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[C++4OpenCL] -nostdinc is broken due to "-finclude-default-header" passed by driver
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
piotrrak
</td>
</tr>
</table>
<pre>
```clang -std-cl=clc++ -nostdinc``` on any input.
```
<built-in>:1:10: fatal error: 'opencl-c-base.h' file not found
1 | #include "opencl-c-base.h"
```
https://godbolt.org/z/ohT9a675b
Please note that since there is no `-fno-include-default-header` option there is no workaround even with `-Xclang` (known to me)
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx0Uk2P2zgM_TX0hXBgU_6IDz5kkvVpgd1DD73KEh2rUSRDkhNMf31hz7SDTlGAhimQj-J7ejJGc3XMPdQvUF8yuabZh34xPoUgb9no9WsPTfEWykp3xTwmnSsL4qKsAnoBesHc-Zi0cepXL3qH0r2iccuaDlCctvhZ3HJxHldjU24ciH9AnMrtK0CccJJJWuQQfNiOQK1f2Cmbq3yUkQ8zUIuTsYzOJ5z86jQUJ0TEEqE9I5AwTtlVMwLRH1j6vElxmlNaIogT0AA0XL0evU0HH65Aw3egwc9fOtm09fjW_r9lGffbGdMsE0bj1JZyYDQRnUdoinxyPn9fJNc8ydWmfGapOez6LMl49xvo6cNNho0P8oMdPk2a90lfd-U3FNDx5vzTYfJ4Z6Au073Qnehkxn3Z1nVDXVWLbO4b1t2Ry2oq20YpKsWxlq06iqoRU3Psmsz0VFBdHMuuPNZFLQ7dVFZl21IlynZSXQtVwXdp7MHax31TIzMxrtyXdVUVTWblyDbuziFy_MS9uulbX7LQb6B8XK8RqsKamOLHmGSS3S13frNP9d_C7vwv1JcPI22SjMHf2KFeeaMLRPn0Fz2JcJExssbxFXUwDw7ZGmz_6WFNmtfxoPwdaNi2ef_lS_DfWCWgYecQgYZ3ko-efgQAAP__zY33tA">