<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/94194>94194</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Template code failing to compile after f46d146
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dyung
</td>
</tr>
</table>
<pre>
As part of our testing, we build external codebases including the compile-time-regular-expressions codebase (hanickadot/compile-time-regular-expressions). After commit f46d146, the code started to fail to compile with an error:
```
include\ctre\wrapper.hpp:173:27: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
170 | return Method::template exec();
| ^
1 error generated.
```
You can see the sources that are failing to compile at https://github.com/hanickadot/compile-time-regular-expressions/blob/eb9577aae3515d14e6c5564f9aeb046d2e7c1124/include/ctre/wrapper.hpp#L173.
This code compiles correctly with the previous compiler, and is also accepted by gcc. @evelez7 can you verify that this code whether this code is correctly being rejected by the compiler? And if so, how should it be fixed?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUlEGPqzYQxz-NcxkRYRvDcuDA7pZTe3tS1aOxB3DXYGSbTdJPXxmS7B6eWr0oioXJzPz_Mz9bhmDGBbEh4pWI95Pc4uR8o2_bMp56p29NG2CVPoIbwG0eIoZolpGwN7gg9JuxGvAa0S_SgnIaexkwgFmU3bRZRogTgnLzaixm0cyYeRw3K32G19VjCMYt4RkIhL1McjHqQ2oXCev-L5Kw-gztENGnIrOJMBSlpkWZBB6lNUKI0kfUEB0M0ti03hPDxcQJ5ALovfOEtyR_J3lLyvz-3R8PN0jEm4o-LRcv1xX9eVpXwltaccJbVhHePvOAhIjzamVEkH7cZlwiWBMimAB4XVElQXJXLmGRM8LqcTBX1NDfdunP-A-8XZzXQMRr9udsQjDLmD3eZtKPWUqc7cm-9j8uRLwf-gFolQOp3sBj3PwCf2CcnE52efssg1dUhL0QVhP--ghMnxRIxG_HFj0swogLehlRn3_asr_cBkouEBB3M8FtXmGAOMkI0uM-iJ2Pr1nICFOMa0i6WEdYN5o4bf1ZuZmw7he56HrresI67GtRVVIiF1RoWmCphCiLoZbY50WpGVaKUlYQ1j3GzLp9zKz7PmbGf6cVf5jdf39M5kD34SA9eY8q2tsBVnK-evw0bguPP_mEplx0AkHa4EAqhWs85j4qdQZS5PiJFv-p9hbe3Aaf6M1wO7oXn2UvE8YJ_bcd811Cj6nBHv8-YLtj9ZTBO2iTjAGCS5omd4Ewuc1qMBF6hJ1GwruTbriueS1P2NCKVkUuGK1PUyOw12XB-lxqTvuSFy-6GBgOhZCcllSdTMNyVuRlzvM6z6k4c0a5KCsmlKYvXNBkdZbGnq39nM_OjycTwoZNXdC6OFnZow373cTYghfYXxLG0lXlmxST9dsYSJGnExC-skQTLTY_HmjvvfkZcfv5u18Zp83b5j8ATMnvS7Z6l7qaoEmSEm-H5M-G_RsAAP__BhzEPA">