Thread overview
[Issue 22182] importC: Error: expression expected, not `)` when casting pointer with redundant parens.
Aug 10, 2021
Dlang Bot
Aug 10, 2021
Iain Buclaw
Aug 10, 2021
Dlang Bot
August 05, 2021
https://issues.dlang.org/show_bug.cgi?id=22182

dave287091@gmail.com changed:

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

--
August 10, 2021
https://issues.dlang.org/show_bug.cgi?id=22182

--- Comment #1 from dave287091@gmail.com ---
Not sure if related, but this also fails to compile:

int main(){
    int x = 0;
    return (int)(x);
}

--
August 10, 2021
https://issues.dlang.org/show_bug.cgi?id=22182

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ibuclaw created dlang/dmd pull request #12969 "fix Issue 22182 - importC: Error: expression expected, not `)` when casting pointer with redundant parens" fixing this issue:

- fix Issue 22182 - importC: Error: expression expected, not `)` when casting pointer with redundant parens

https://github.com/dlang/dmd/pull/12969

--
August 10, 2021
https://issues.dlang.org/show_bug.cgi?id=22182

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw@gdcproject.org
           Hardware|x86_64                      |All
                 OS|Mac OS X                    |All

--
August 10, 2021
https://issues.dlang.org/show_bug.cgi?id=22182

Dlang Bot <dlang-bot@dlang.rocks> changed:

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

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12969 "fix Issue 22182 - importC: Error: expression expected, not `)` when casting pointer with redundant parens" was merged into master:

- bec9297fe026ddc94f53a23d1fb217203d36405c by Iain Buclaw:
  fix Issue 22182 - importC: Error: expression expected, not `)` when casting
pointer with redundant parens

https://github.com/dlang/dmd/pull/12969

--