Open shenki opened 2 years ago
We've got some time scheduled later this year to bump up our compiler. In the meantime I'll see if someone can take a quick peek.
Looks like the way that decltype works has changed perhaps. Anyhow, fixed the issue with a commit that should make its way out of gerrit soon.
Thanks @ibmzach
When building hostboot with a newer GCC (see https://github.com/open-power/op-build/pull/4595):
The failure is in the test case (no in hostboot seems to trigger it) here https://github.com/open-power/hostboot/blob/master-p10/src/usr/testcore/lib/unique_ptr.H#L116
Removing this code allows the build to complete. However, this code seems to be valid. If we build it using GCC's unique_ptr.h, it compiles and the test case runs.
I don't understand what the templates are doing here, but it seems they are the cause of the problem: