Thread overview
[Issue 21619] Parameter-less function literal in expression statement fails to parse
Feb 09, 2021
Paul Backus
Jul 28, 2021
Basile-z
Jul 28, 2021
Basile-z
Jul 28, 2021
Basile-z
Dec 17, 2022
Iain Buclaw
Feb 19, 2023
Nick Treleaven
Mar 23, 2023
Nick Treleaven
Aug 26, 2023
Dlang Bot
Aug 28, 2023
Dlang Bot
February 09, 2021
https://issues.dlang.org/show_bug.cgi?id=21619

Paul Backus <snarwin+bugzilla@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86_64                      |All
                 OS|Linux                       |All
           Severity|enhancement                 |normal

--
July 28, 2021
https://issues.dlang.org/show_bug.cgi?id=21619

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Ajieskola@gmail.com

--- Comment #1 from Basile-z <b2.temp@gmx.com> ---
*** Issue 22152 has been marked as a duplicate of this issue. ***

--
July 28, 2021
https://issues.dlang.org/show_bug.cgi?id=21619

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid

--
July 28, 2021
https://issues.dlang.org/show_bug.cgi?id=21619

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |10233


Referenced Issues:

https://issues.dlang.org/show_bug.cgi?id=10233
[Issue 10233] [Tracker] Grammar issues
--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=21619

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
February 19, 2023
https://issues.dlang.org/show_bug.cgi?id=21619

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick@geany.org

--- Comment #2 from Nick Treleaven <nick@geany.org> ---
This requires arbitrary lookahead to parse. We could add a better error message
though. (Workaround `() { ... }();`).

Maybe we can fix the grammar by moving BlockStatment before anything that can be a NonEmptyStatement.

--
March 23, 2023
https://issues.dlang.org/show_bug.cgi?id=21619

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |briancschott@gmail.com

--- Comment #3 from Nick Treleaven <nick@geany.org> ---
*** Issue 14378 has been marked as a duplicate of this issue. ***

--
August 26, 2023
https://issues.dlang.org/show_bug.cgi?id=21619

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ntrel created dlang/dlang.org pull request #3690 "[spec] Describe parameter-less function literal" mentioning this issue:

- [spec] Describe parameter-less function literal

  Part of issue 21619.
  Also split short syntax section in two.

https://github.com/dlang/dlang.org/pull/3690

--
August 28, 2023
https://issues.dlang.org/show_bug.cgi?id=21619

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dlang.org pull request #3690 "[spec] Describe parameter-less function literal" was merged into master:

- eafc6b71d079a84902d8976a2a58826b1317ab00 by Nick Treleaven:
  [spec] Describe parameter-less function literal

  Part of issue 21619.
  Also split short syntax section in two.

https://github.com/dlang/dlang.org/pull/3690

--