<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/73785>73785</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
kmp_gsupport.cpp fails to build with ` error: use of overloaded operator '[]' is ambiguous (with operand types 'SimpleVLA<kmp_depend_info_t>`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
openmp,
build-problem
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
sylvestre
</td>
</tr>
</table>
<pre>
on linux on trunk
```
| ^
/build/source/openmp/runtime/src/kmp_gsupport.cpp:1286:17: note: built-in candidate operator[](const struct kmp_depend_info *, int)
/build/source/openmp/runtime/src/kmp_gsupport.cpp:1286:17: note: built-in candidate operator[](volatile struct kmp_depend_info *, int)
/build/source/openmp/runtime/src/kmp_gsupport.cpp:1286:17: note: built-in candidate operator[](const volatile struct kmp_depend_info *, int)
/build/source/openmp/runtime/src/kmp_gsupport.cpp:1315:17: error: use of overloaded operator '[]' is ambiguous (with operand types 'SimpleVLA<kmp_depend_info_t>' (aka 'SimpleVLA<kmp_depend_info>') and 'kmp_int32' (aka 'int'))
1315 | dep_list[i] = gomp_depends.get_kmp_depend(i);
| ~~~~~~~~^~
/build/source/openmp/runtime/src/kmp_utils.h:51:12: note: candidate function
51 | const T &operator[](std::size_t Idx) const noexcept { return Ptr[Idx]; }
| ^
/build/source/openmp/runtime/src/kmp_utils.h:52:6: note: candidate function
52 | T &operator[](std::size_t Idx) noexcept { return Ptr[Idx]; }
| ^
/build/source/openmp/runtime/src/kmp_gsupport.cpp:1315:17: note: built-in candidate operator[](struct kmp_depend_info *, int)
1315 | dep_list[i] = gomp_depends.get_kmp_depend(i);
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUVUFv6zYM_jX0RWhg0VHsHHxImhoYsMOADbsGtsUkWhXJkKiu3eH99kFOmr51wPbeNqx4QhAlEvWJH_mR6mM0R0fUgtqC2hV94pMPbXyxTxQ5UDF4_dJ6J6xx6Vl4Jzgk9wjlDsoNrMrr5_J3_hbzgPpegHq4bmA3JGM1YBd9CiMBdn4id54Au5Acm3NeimEE7B7P0_4Y0zT5wItxmqDaSGxWeaqh2gjnmfKcEfnOODH2ThvdMwk_UejZhwsXwGb0LrKIHNLIIgNrmsjpvXEHLwA3gPfCOAZcf7CjT972bCx9C75egvoRHldS3TymEHzIP1Ik4Q_CP1Gwvtekbx4LwPrV61qYKPrzYI7JpygAm18Nny6mTgt-mSiv1j-a82Tp5-83UN2_o7RnqB4yEmDTP_Z_Y32xBVyLjA9Y533juMI_QswByna3MInMcy6g16Fp2lsTGdTWgNoJqHbi6G_3xcWReP92P2BjMlq1fV-Rn64D1MOnf5iTxMbGxQmqjZKzij6Xz5tqDsmNbLy7eaDkldJFPj8JwNWfpBVZQ7WBahPNb7Rn8Z1-zhG8HHGenkeaWEC9FYE4BSd-4Hw4m6kdVFsB9e6_60KfUc0sV1_KFK9Mv4rj_87ur4rra9rBl9f_m7D_paBv706h20qvq3VfUCvrUqJq5HpVnFrZLw-1xKYZ18sBD0qRJByaErWSJQ2qMC2WWEmJaymXlVwttKrLmkYpJS77eqhhWdK5N3Zh7dN54cOxMDEmauuqblRh-4FsnB9NxNcwI-A9IM5puJuCHyyd86raFaHNMHdDOkZYlpl6fANmw5ba9zkRh97YKNjPWdBi7lewKj-s863KIgXbnpinmBWMHWB3NHxKw2L0Z8AuM7pOmf8vNDJgN8ctAnZz6H4PAAD__0WlpCo">