Thread overview
[Issue 23691] compilable/test22294.i:16:1: control Z interpreted as end of file
[Issue 23691] compilable/test22294.i:16:1: error: unknown type name 'this'
Feb 12, 2023
Iain Buclaw
Feb 20, 2023
Walter Bright
Feb 20, 2023
Iain Buclaw
Feb 27, 2023
Iain Buclaw
Apr 09, 2023
Walter Bright
Apr 09, 2023
Dlang Bot
Apr 09, 2023
Dlang Bot
February 12, 2023
https://issues.dlang.org/show_bug.cgi?id=23691

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 20, 2023
https://issues.dlang.org/show_bug.cgi?id=23691

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
The use of ^Z to indicate end of file is commonplace on Windows. It dates back to DOS because the size of a file was the size it was on disk, so ^Z was used to terminate it.

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw@gdcproject.org

--- Comment #2 from Iain Buclaw <ibuclaw@gdcproject.org> ---
(In reply to Walter Bright from comment #1)
> The use of ^Z to indicate end of file is commonplace on Windows. It dates back to DOS because the size of a file was the size it was on disk, so ^Z was used to terminate it.
So it's valid for a Windows C compiler, but not Linux?

I doubt that there's any defined way to mark the end of a source file in C, so maybe mention this alternative form of `__EOF__` under https://dlang.org/spec/importc.html#visualc-extensions ?

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P2

--
April 09, 2023
https://issues.dlang.org/show_bug.cgi?id=23691

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|compilable/test22294.i:16:1 |compilable/test22294.i:16:1
                   |: error: unknown type name  |: control Z interpreted as
                   |'this'                      |end of file

--
April 09, 2023
https://issues.dlang.org/show_bug.cgi?id=23691

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

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

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dlang.org pull request #3579 "fix Issue 23691 - compilable/test22294.i:16:1: control Z interpreted …" fixing this issue:

- fix Issue 23691 - compilable/test22294.i:16:1: control Z interpreted as end of file

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

--
April 09, 2023
https://issues.dlang.org/show_bug.cgi?id=23691

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/dlang.org pull request #3579 "fix Issue 23691 - compilable/test22294.i:16:1: control Z interpreted …" was merged into master:

- 3e4818576a9d40bb7a0f6bad3c569c30d26bc5e4 by Walter Bright:
  fix Issue 23691 - compilable/test22294.i:16:1: control Z interpreted as end
of file

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

--
December 15, 2023
https://issues.dlang.org/show_bug.cgi?id=23691
Issue 23691 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

--