Thread overview
[Issue 24229] Parser accepts fundamental types as primary expressions without dot identifier
Nov 16, 2023
Basile-z
Nov 09
basile-z
November 16, 2023
https://issues.dlang.org/show_bug.cgi?id=24229

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Parser accepts basic type   |Parser accepts fundamental
                   |as primary expression       |types as primary
                   |without dot identifier      |expressions without dot
                   |                            |identifier
           Severity|minor                       |normal

--
November 08
https://issues.dlang.org/show_bug.cgi?id=24229

Nick Treleaven <nick@geany.org> changed:

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

--- Comment #1 from Nick Treleaven <nick@geany.org> ---
> instead it does and ends up with a semantic-time error

Is that a problem? That was intentional to fix issue 9848. Though that also meant things like this work:

alias T = int;
pragma(msg, int[T]);

Before dmd 2.102 that was a parse error.

--
November 09
https://issues.dlang.org/show_bug.cgi?id=24229

--- Comment #2 from basile-z <b2.temp@gmx.com> ---
It's not a problem but the specs need to be updated.

--