[libcxx-commits] [libcxx] [libc++] Prohibits initializer_list specializations. (PR #128042)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Mar 1 03:34:34 PST 2025
mordante wrote:
> > I don't know why we claimed to implement LWG2129 (#103237), but this patch does the correct thing. Thanks!
>
> Per [3687d3c](https://github.com/llvm/llvm-project/commit/3687d3c2e9e1d4dcfb76e7d7614413eede5af951), it seems expected that compilers would handle LWG2129 by detecting `initializer_list` specializations directly. But currently only MSVC and EDG perform such check, and neither GCC nor Clang diagnose the following:
GCC indeed only seems not to diagnose partial specialization. Clang indeed does neither, which was the reason for this patch.
https://github.com/llvm/llvm-project/pull/128042
More information about the libcxx-commits
mailing list