Compiling this code ================================ extern(C++, "foo",) struct S {} ================================ fails with: comma.d(1): Error: expression expected, not `)` comma.d(2): Error: found `struct` when expecting `)` comma.d(2): Error: no identifier for declarator `S` comma.d(2): Error: declaration expected, not `{ This is inconsistent because a trailing comma is allowed for function arguments, array literals, ... .
@MoonlightSentinel created dlang/dmd pull request #11090 "Fix Issue 20791 - extern(C++ <strings>) should allow a trailing comma" fixing this issue: - Fix Issue 20791 - extern(C++ <strings>) should allow a trailing comma https://github.com/dlang/dmd/pull/11090
dlang/dmd pull request #11090 "Fix Issue 20791 - extern(C++ <strings>) should allow a trailing comma" was merged into master: - a496a35e72832410726adf11ee45cbb9c81ead30 by MoonlightSentinel: Fix Issue 20791 - extern(C++ <strings>) should allow a trailing comma https://github.com/dlang/dmd/pull/11090