Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<mdspan>: Cleanup extents's deduction guide #3632

Conversation

JMazurkiewicz
Copy link
Contributor

@JMazurkiewicz JMazurkiewicz commented Apr 6, 2023

This small PR removes workaround for extents's deduction guide ICE. It looks like the code was incorrect anyway (meaning it is ICE on invalid) and Clang incorrectly accepts it.

Here is a minimal repro: https://godbolt.org/z/Wdjq5boG3, feel free to report it to both LLVM and MSVC (and maybe to GCC, this error message is awful).

Drive-by: address comment from previous PR.

@JMazurkiewicz JMazurkiewicz requested a review from a team as a code owner April 6, 2023 22:18
@JMazurkiewicz JMazurkiewicz changed the title <mdspan>: Fix extents's deduction guide <mdspan>: Cleanup extents's deduction guide Apr 6, 2023
@StephanTLavavej StephanTLavavej added the mdspan C++23 mdspan label Apr 6, 2023
@StephanTLavavej StephanTLavavej merged commit f4934c6 into microsoft:feature/mdspan2 Apr 7, 2023
@StephanTLavavej
Copy link
Member

😻 🧹 ✅

@JMazurkiewicz JMazurkiewicz deleted the mdspan/extents-deduction-guide branch April 7, 2023 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mdspan C++23 mdspan
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants