Repository navigation
Fix build failure on older Ubuntu - #6085
Conversation
Change one of the CI builders to use an older ubuntu to try to reproduce the build failure.
|
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
|
Huzzah! The build is fixed! Shall we keep the change to the C++20 builder here to avoid similar problems in the future? |
sbc100
left a comment
There was a problem hiding this comment.
What was wrong with the current code exactly? Was it using some new feature? Or is the old ubuntu compiler just buggy/wrong?
| name: c++20 | ||
| runs-on: ubuntu-latest | ||
| # Make sure we can still build on older Ubuntu | ||
| runs-on: ubuntu-20.04 |
| Vector<RandomFullLattice>, | ||
| TupleFullLattice>; | ||
|
|
||
| struct RandomFullLattice::LatticeImpl : FullLatticeVariant {}; |
There was a problem hiding this comment.
Is this "subclass without adding anything" a workaround for a compiler bug, or a C++ spec requirement, or something else?
There was a problem hiding this comment.
Even before this PR, we had to subclass without adding anything because we had to defer defining these nested types until their outer types (RandomFullLattice and RandomLattice) were complete. Since using statements cannot be forward declared, we had no choice but to forward declare LatticeImpl (previously L) as separate structs.
This PR just gives a name to the raw std::variant<...> superclasses as well and uses those newly-named types down below where we call std::visit.
It seems that the implementation of |
Update the C++20 builder to use Ubuntu 20.04 to catch problems building with its system compiler. Also fix such a problem in wasm-fuzz-lattices.cpp.

Update the C++20 builder to use Ubuntu 20.04 to catch problems building with its system compiler. Also fix such a problem in wasm-fuzz-lattices.cpp.