[clang] Dynamic initialization of an array of objects with a private destructor is rejected by clang #121319
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
diverges-from:edg
Does the clang frontend diverge from edg compiler
diverges-from:gcc
Does the clang frontend diverge from gcc on this issue
diverges-from:msvc
Does the clang frontend diverge from msvc on this issue
Very surprised to see that:
This is rejected by clang:
I wonder if I have missed some instructions on the standard, but it appears that other compilers including GCC, MSVC and EDG can normally accept it.
https://godbolt.org/z/9d6Y5b3Mr
The text was updated successfully, but these errors were encountered: