Open GabrielRavier opened 3 years ago
void f() { void{}; }
This has been considered valid since http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#2351 was accepted as a DR in 2018, but Clang fails to compile it, with this error:
<source>:3:9: error: illegal initializer type 'void' void{}; ^
@llvm/issue-subscribers-clang-frontend
@llvm/issue-subscribers-c-20
Extended Description
This has been considered valid since http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#2351 was accepted as a DR in 2018, but Clang fails to compile it, with this error: