Commit e28609f
committed
fix: the stated tools of a toolchain are a named struct, not a std::pair specialization
Exporting `std::vector<std::pair<std::string, std::filesystem::path>>` from
mcpp.toolchain.model made clang 20.1.7 on Windows crash while generating code
for `mcpp::pack::interface_set_digest`, a function of another module that
instantiates the same specialization and sorts by a pointer to its `first`. The
report named a file this branch never touched, which is how this hazard always
reads; `modules/manifest/src/types.cppm` records a GCC 16 case of the same
shape. The field is now a `ToolOverride` of two named members, and every reader
uses the same structured binding it used before.1 parent d7da9cc commit e28609f
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
325 | 339 | | |
326 | 340 | | |
327 | 341 | | |
| |||
0 commit comments