<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/155052>155052</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[C++4OpenCL] Access qualifiers in template parameters
</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>
Following code is currently rejected:
```c++
template <typename T>
constexpr bool __is_read_only_qual = false;
template <typename T>
constexpr bool __is_read_only_qual<__read_only T> = true;
```
https://godbolt.org/z/anv5scbnG
Probably such partial specialization should be valid as it could be useful.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyskkFvGyEQhX8NexnFImDW3sMeHKfbS6X20Ls1sLM2LYYtA06dX1-tk8ZSz5VGQhr05vGYD5n9MRL1wjwJ89xgLaeU-9mnkjP-bGwar_2QQkgvPh7BpZHAM7iaM8USrpDpB7lCo9A7IXeilW_lhHpaSi7dQuc5YCEQel-uM0U8E3wX-pOQO5ciF_o9Z7ApBTgcPB8y4XhIMVwPvyoGEPoZJgxMQv-XgULvD_fWTXfzKLneLT6SCLk7lTLzElANQg3HNNoUyirlo1DDq1ADxothZ-PnN-m3nCzacAWu7gQz5uIxAM_kPAb_isWnCHxKNYxgCS4Y_AjI4Au4v83KNNWwasZej53usKH-cWNMJzu12TanftNhZ3W7ac1mGpVS06aV7bRtJ-moNXpsfK-kMnKrtJR6rbcri9g5a-z02BFR68Ra0hl9WIVwOS9hGs9cqX80RhrVBLQU-IaFUpFe4HYrlFooyf0ierD1yGItg-fC9zHFl3Djaf_GwPrrTHH_RZhn2DlHzLAswU-eMoOP8LHMGTOeqVDmpubQ__PrvpyqXbl0FmpYvN6PhzmnhUChhtsLWajhPcKlV38CAAD__-2_7qU">