Thread overview
[Issue 16088] Parse error for import expression in statement
Jun 13, 2018
RazvanN
Jun 13, 2018
timon.gehr@gmx.ch
Jun 13, 2018
RazvanN
June 13, 2018
https://issues.dlang.org/show_bug.cgi?id=16088

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> ---
Why should it parse? The grammar [1] shows that after the "import" keyword an identifier is expected not '('. Maybe close as invalid?

[1] https://dlang.org/spec/grammar.html#ImportDeclaration

--
June 13, 2018
https://issues.dlang.org/show_bug.cgi?id=16088

--- Comment #2 from timon.gehr@gmx.ch ---
https://dlang.org/spec/grammar.html#ImportExpression

--
June 13, 2018
https://issues.dlang.org/show_bug.cgi?id=16088

--- Comment #3 from RazvanN <razvan.nitu1305@gmail.com> ---
(In reply to timon.gehr from comment #2)
> https://dlang.org/spec/grammar.html#ImportExpression

You are are right. Thank you. PR: https://github.com/dlang/dmd/pull/8356

--
June 14, 2018
https://issues.dlang.org/show_bug.cgi?id=16088

--- Comment #4 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/6ebf865e893f310442b1d3cae9c764863a1d9246 Fix Issue 16088 - Parse error for import expression in statement

https://github.com/dlang/dmd/commit/56a69ae463bec5e63ad7e5d7c2539b495e19c012 Merge pull request #8356 from RazvanN7/Issue_16051

Fix Issue 16088 - Parse error for import expression in statement

--
June 14, 2018
https://issues.dlang.org/show_bug.cgi?id=16088

github-bugzilla@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--