Skip to content

boost variant order of parameters relevant in 1.78.0 ? #721

Description

@allopislozano

Some of our code broke after the 1.78.0 update. I finally managed to pinpoint the issue. It looks like for some reason a grammar that is a disjunction needs the same order of parameters in the variant to be synthesized. Was this something that should not have compiled in 1.77 or is it something that broke in 78?

The following code works in 77 but not in 78:
https://godbolt.org/z/MKMezMTqq

After switching the order of the parameters in the X variant from B,A to A,B it works in both versions:
https://godbolt.org/z/6e6sMKTYW

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions