Thread overview
[Issue 24447] ImportC: extern symbols cannot have initializers
Jul 21
Dlang Bot
Jul 21
Dlang Bot
March 21
https://issues.dlang.org/show_bug.cgi?id=24447

--- Comment #1 from dave287091@gmail.com ---
`extern int x = 3;` at file scope should be treated the same as `int x = 3;`.

Section 6.9.2 defines the rules and has an example.

--
March 21
https://issues.dlang.org/show_bug.cgi?id=24447

Carl Sturtivant <sturtivant@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sturtivant@gmail.com

--
July 21
https://issues.dlang.org/show_bug.cgi?id=24447

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

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

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@dkorpel created dlang/dmd pull request #16743 "Fix bugzilla 24447 - ImportC: extern symbols cannot have initializers" fixing this issue:

- Fix bugzilla 24447 - ImportC: extern symbols cannot have initializers

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

--
July 21
https://issues.dlang.org/show_bug.cgi?id=24447

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 #16743 "Fix bugzilla 24447 - ImportC: extern symbols cannot have initializers" was merged into master:

- e650e27b2b8a31aeba6875a8ca7497ddfdd83407 by Dennis Korpel:
  Fix bugzilla 24447 - ImportC: extern symbols cannot have initializers

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

--