Thread overview
[Issue 23711] compilable/testcstuff1.c:63:1: error: invalid use of 'restrict'
Feb 15, 2023
Iain Buclaw
Feb 15, 2023
Iain Buclaw
Feb 15, 2023
Iain Buclaw
[Issue 23711] compilable/testcstuff1.c:63:1: error: invalid use of restrict
Feb 20, 2023
Walter Bright
Feb 20, 2023
Dlang Bot
Feb 22, 2023
Dlang Bot
February 15, 2023
https://issues.dlang.org/show_bug.cgi?id=23711

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid, ImportC
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=23689
         Depends on|                            |23689


Referenced Issues:

https://issues.dlang.org/show_bug.cgi?id=23689
[Issue 23689] ImportC: C tests in the testsuite are not valid C
--
February 15, 2023
https://issues.dlang.org/show_bug.cgi?id=23711

--- Comment #1 from Iain Buclaw <ibuclaw@gdcproject.org> ---
Another test that fails to compile.

compilable/testcstuff1.c:260:5: error: invalid use of ‘restrict’
  260 |     int (* const volatile restrict fp2)(void);
      |     ^~~


```
int (* const volatile restrict fp2)(void);
```

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

--- Comment #2 from Iain Buclaw <ibuclaw@gdcproject.org> ---
And another

compilable/testcstuff1.c:278:5: error: invalid use of ‘restrict’
  278 |     restrict int ri;
      |     ^~~~~~~~


>From the same function, bundling both this and the previous together.

```
void test2()
{
    int (* const volatile restrict fp2)(void);
    restrict int ri;
}
```

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

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com
            Summary|compilable/testcstuff1.c:63 |compilable/testcstuff1.c:63
                   |:1: error: invalid use of   |:1: error: invalid use of
                   |'restrict'                  |restrict

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

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

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

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #14898 "fix Issue 23711 - compilable/testcstuff1.c:63:1: error: invalid use o…" fixing this issue:

- fix Issue 23711 - compilable/testcstuff1.c:63:1: error: invalid use of restrict

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

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

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

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

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #14898 "fix Issue 23711 - compilable/testcstuff1.c:63:1: error: invalid use o…" was merged into master:

- f4a7bf192ee230fcf352fa8330ab271fd7f1eeec by Walter Bright:
  fix Issue 23711 - compilable/testcstuff1.c:63:1: error: invalid use of
restrict

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

--
December 15, 2023
https://issues.dlang.org/show_bug.cgi?id=23711
Issue 23711 depends on issue 23689, which changed state.

Issue 23689 Summary: ImportC: C tests in the testsuite are not valid C https://issues.dlang.org/show_bug.cgi?id=23689

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

--