[PATCH] D121141: [Clang] Add `-funstable` flag to enable unstable and experimental features: follow-up fixes

Louis Dionne via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 14 11:52:32 PDT 2022


ldionne marked an inline comment as done.
ldionne added a comment.

In D121141#3652616 <https://reviews.llvm.org/D121141#3652616>, @MaskRay wrote:

> LGTM.
>
> It may be related, @urnathan wants to add `-std=c++{current,future}` to GCC and may have opinions on the option name.

Interesting! @urnathan , is there any documentation/discussion on what `-std=c++{current,future}` would do? I think it's unrelated to this specific proposal, since `-fexperimental-library` is valid regardless of the Standard mode, however I still think it would make sense to align what Clang and GCC do. One idea we had floated around was `-std=c++latest` meaning the latest officially ratified Standard, and `-std=c++next` being the one currently cooking. For example, right now that would give us `-std=c++latest == -std=c++20` and `-std=c++next == -std=c++2b`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121141/new/

https://reviews.llvm.org/D121141



More information about the cfe-commits mailing list