Skip to content

Conversation

heshpdx
Copy link
Contributor

@heshpdx heshpdx commented Oct 8, 2025

This fixes a build error with gcc-16, found via testing of the SPEC CPU code. @amin1377

error: no match for 'operator[]' (operand types are 'edge_sort_iterator' and 'long int')

We think it is related to this: https://gcc.gnu.org/pipermail/libstdc++/2025-September/063655.html

This fixes a build error with gcc-16.
@github-actions github-actions bot added the lang-cpp C/C++ code label Oct 8, 2025
@amin1377 amin1377 self-requested a review October 9, 2025 13:12
@amin1377
Copy link
Contributor

amin1377 commented Oct 9, 2025

The changes look good, Mahesh. Thank you for updating the upstream code with the patch.

@amin1377 amin1377 merged commit 0c2672e into verilog-to-routing:master Oct 9, 2025
30 checks passed
@amin1377
Copy link
Contributor

amin1377 commented Oct 9, 2025

@heshpdx: Since the function is marked as const, shouldn’t the return type, given that it’s returned by reference, also be const?

@heshpdx
Copy link
Contributor Author

heshpdx commented Oct 11, 2025

@heshpdx: Since the function is marked as const, shouldn’t the return type, given that it’s returned by reference, also be const?

I think you are right.

@heshpdx
Copy link
Contributor Author

heshpdx commented Oct 14, 2025

We have a better patch. I will make a new PR soon.

@amin1377
Copy link
Contributor

Sounds good. Thanks, Mahesh!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang-cpp C/C++ code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants