<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/144723>144723</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm-rc fails to parse FILEVERSION 16bit values
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
clshortfuse
</td>
</tr>
</table>
<pre>
```cpp
#include <winver.h>
1 VERSIONINFO
FILEVERSION 0,2025,0618,1507
```
> llvm-rc: Error parsing file: Integer invalid or too large: 0618
FILEVERSION spec says:
> Binary version number for the file. The version consists of two 32-bit integers, defined by four 16-bit integers. For example, "FILEVERSION 3,10,0,61" is translated into two doublewords: 0x0003000a and 0x0000003d, in that order. Therefore, if version is defined by the DWORD values dw1 and dw2, they need to appear in the FILEVERSION statement as follows: HIWORD(dw1), LOWORD(dw1), HIWORD(dw2), LOWORD(dw2).
https://learn.microsoft.com/en-us/windows/win32/menurc/versioninfo-resource
I'm not sure if the bug is on Microsoft, or `llvm`, but regardless, things builds find with Microsoft's `rc.exe` but not `llvm-rc`
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx0VFGP4yYQ_jXkZbQWHm_s5MEPuWysRrreSteqfcZmsKkIRICTzb-vwN42J91JiQLD5Pu-meFDhKBHS9Sy7Re2fduIOU7Ot4MJk_NRzYE2vZOPltV8-QzXK-MHhpW2g5klAauOd21v5IuJVad0xg8l_HX6_sf5_dv5W_fO-KE7fz2tEeAMj8hxy_DI63LH8FhuebP87z-WdcsPrDqBMbfLix9YdYCT987DVfig7QhKG0rRs400kgdtb8JoCc5DdA6M8GM-zzwZ7llIuNIAQTwCq57Ivmgr_ANu5IN2Fux86cmDSpATZcYC_pyIHZEd-Jq1bAZngw4xgFMQ7w4qfOl1BL2ICwyPIElpSxL6Byg3eyjrH1IK6JwH-hCXq6GUzxCfFVepWal_6VuXDBF0gOiFDUZEkgnIZW7p5t7Q3XkZcgM-OOcV51yAsHLZpohMJNpCnEQE5yX5XJwn5XwWoNVPCtXhuZD42Yy3v9-_v63pwswUlrW8l8tCWPkZwYQdJ3qAJZIQHYjrlYRftKx4T5UvgRBFpAvZCCKAcsa4e55dPvztnOlxl_hwz_C4xL--_zz-lI-_yE_xYrkZU4zXzIUdw86Q8La46MG74FQsBndh2JF9mQPD7q6tTMryqkKG3YXs7AeG3dpGbZV78RTc7AdaCM4MmwtYFyHMnkCrfN36eUwTdhZ-_yRLnXMeWM2TLZJV8Aj9HMHTKLw0FMLSXG3HAP2sjQygtJVw13F6xmlCQvFDQR_Eap5BkoAVOjmu5hvZVnJf7cWG2rLZcqw5r_lmaglfyx02ux0OSjV7xRVWQy35VpaqQqk2uk0uT9Yrt1hyXohmJ3lfU7PnTcP3ir1yughtisRWOD9udAgzteXra4PVxoieTMjvEqKlO-RThpieKd9mif08BvbKTbLd_zBRR0PtWgMooU1IVyy9GgTPfirr5L7lsm5mb9ofxzzqOM39Ot3c7eXn5erdPzREhl3WlEa9ir61-G8AAAD__8WGolA">