On Saturday, June 13, 2020 10:22:39 AM MDT John Chapman via Digitalmars-d-
learn wrote:
> On Saturday, 13 June 2020 at 15:33:55 UTC, Boris Carvajal wrote:
> > On Saturday, 13 June 2020 at 09:02:21 UTC, John Chapman wrote:
> >> Is this a bug or have I made a mistake? This worked a few days
> >> ago
On 6/13/20 9:22 AM, John Chapman wrote:
Hmm, compiling with -release makes it work. Not a huge issue, I'll just
avoid final switches in debug mode until it's fixed. Thanks.
Apparently, it's a known issue:
https://issues.dlang.org/show_bug.cgi?id=19548
Ali
On Saturday, 13 June 2020 at 15:33:55 UTC, Boris Carvajal wrote:
On Saturday, 13 June 2020 at 09:02:21 UTC, John Chapman wrote:
Is this a bug or have I made a mistake? This worked a few days
ago and I haven't changed my setup since then.
https://issues.dlang.org/show_bug.cgi?id=19548
Your
On Saturday, 13 June 2020 at 09:02:21 UTC, John Chapman wrote:
Is this a bug or have I made a mistake? This worked a few days
ago and I haven't changed my setup since then.
https://issues.dlang.org/show_bug.cgi?id=19548
Your code triggers it by using "-debug" option on
https://run.dlang.io/
On Sat, Jun 13, 2020 at 09:02:21AM +, John Chapman via Digitalmars-d-learn
wrote:
[...]
> module test;
>
> import std.uni;
>
> enum Cheese { cheddar, edam }
>
> void test(Cheese cheese) {
> final switch (cheese) {
> case Cheese.cheddar: break;
> case Cheese.edam: break;
> }
> }
>
If I use a final switch and import std.uni (or any other module
that imports it, such as std.string), I'm getting unresolved
external symbol errors with DMD 2.092.
This code triggers the issue:
---
module test;
import std.uni;
enum Cheese { cheddar, edam }
void test(Cheese cheese) {