Skip to content

STL: lack of test coverage for differing /Zc:alignedNew #2713

Description

In what language modes does the STL support /Zc:alignedNew and/or /Zc:alignedNew-?

language mode /Zc:alignedNew /Zc:alignedNew- Note
C++14 ??? Yes clang-cl (but not cl) allows /std:c++14 /Zc:alignedNew
C++17 Yes Maybe
C++20 Yes Maybe
C++23 Yes Maybe

Once this is decided, we should:

  1. Enforce that __cpp_aligned_new has a supported value for the current language mode if there are unsupported combinations.
  2. Add test coverage if we decide to support any of the non-Yes combinations in the table above (we already cover all of the Yeses). At least "C++14 with aligned new" (if we choose to support that) and "C++latest without aligned new".

Related: DevCom-1346191, DevCom-10036384.

Metadata

Metadata

Assignees

No one assigned

    Labels

    testRelated to test code

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions