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

    <tr>
        <th>Summary</th>
        <td>
            [Clang][C++26] Raw string literals with newly perimitted d-chars are still rejected
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          frederick-vs-ja
      </td>
    </tr>
</table>

<pre>
    https://clang.llvm.org/cxx_status.html currently claims that [P2558R2](https://wg21.link/p2558r2) is implemented. However, per [[lex.string]](https://eel.is/c++draft/lex.string), `@`, `$`, and `` ` `` need to be usable as d-chars since C++26, and Clang doesn't accept the newly permitted raw string literals yet.

[Godbolt link](https://godbolt.org/z/W54b1heq4)
```C++
int main() {
  (void) R"abc`@$(foobar)abc`@$";
}
```

Perhaps we should add pedantic warning/error for these permitted raw string literals in pre-C++26 modes.

Originally discovered by @jakubjelinek in https://gcc.gnu.org/PR110343.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEVEFv6ygQ_jX4MoqFMXbsgw8vjbJ726qXPa4wTGwaDF7ASbO_foXjvr5Wld7BIMbwMd838yFC0INF7Eh1INUxE0scne_OHhV6LS-7a9i9iqx36t6NMc6BlD8IOxF2kkbYITfmOuXODynw9vZPiCIuIR_jZEAu3qON5g7SCD0FiKOIQKrDM6uq5oWR6khY8xn0NrAiN9peCDvNaZtnhLWgA-hpNjihjahy-NPd8IqesCeY0cOa-8HgWx6i13ZIyN-AI5pch5QpYQfCDsqLcyTs9MtB1iZMUlPCaRq3BePbQli1BmoK25cmi6ggOugRliB6gyACqJ0chQ8QtJUIT48rWf2O8pTkA-UwWML2EYSUOEeII4LFm7knYpOOERV4cYNHfmB0RC9MgDvGnNAjoT-2sTr84VTvTIRVvm_oD4__W7X-I-z0d8X7YsR_eeL9gFkJkZpu-T6i2kaYhLaENakaZL_FAQhrrk6rFH0hjIlebtoxTlhzdq4XnrD2c5yRcgMg--OXe3_l9Ix-FHOAG0IY3WIUCKVgRiVs1BJuwtu1Zif03nk4O5_kC_gb6bSF2ePuZ0VgcgrDJzX_8nrQVhhzB6WDdFf0qKC_A-H0VVyW_hWNtnhJWF9EljIf7LKJ_PxSFLTkZZ6prlRt2YoMu2Jf1LysacmzsRO0rNp637ZV1QheFFUtaSv4WTZ7zs-0yHTHKOO0YiUt-b7geSlq1tSqKArcV3XTEk5xEtr8tGKmQ1iwa8uipJkRPZqwupux1bJJ_-qY-S7t3_XLEAinRocYPhCijmZ9EtYuXe10-Ojg6ggv3-h603H86F29VeDdBsIjhKiNAY-vKCOqbPHmy5sy6DgufS7dlGxpru_TbvYuHSLstJJLJn7wu3bs_wAAAP__tENzFA">