[Issue 21651] New: Unimported package doesn't error out when used as part of fully qualified type

2021-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21651

  Issue ID: 21651
   Summary: Unimported package doesn't error out when used as part
of fully qualified type
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: boris...@gmail.com

code:

--- pkg/a.d
module pkg.a;

pkg.b.Y a; // Doesn't raise an error.
// int b = pkg.b.Y; // However, it does here.

--- pkg/b.d
module pkg.b;

alias Y = int;


Command: dmd pkg/a.d pkg/b.d

Should print "Error: undefined identifier `b` in package `pkg`"

--


[Issue 13737] Scope import do not work with function parameters in template.

2021-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13737

Boris Carvajal  changed:

   What|Removed |Added

 CC||destructiona...@gmail.com

--- Comment #4 from Boris Carvajal  ---
*** Issue 21411 has been marked as a duplicate of this issue. ***

--


[Issue 21411] import in eponymous IFTI does not work correctly

2021-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21411

Boris Carvajal  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||boris...@gmail.com
 Resolution|--- |DUPLICATE

--- Comment #1 from Boris Carvajal  ---


*** This issue has been marked as a duplicate of issue 13737 ***

--


[Issue 21650] parse form that returns elements parsed is too difficult to use

2021-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21650

--- Comment #1 from adela.vai...@gmail.com ---
The order you suggested would have introduced breaking changes. See a thread
here [1].

[1] https://github.com/dlang/phobos/pull/7642#discussion_r493478675

--


[Issue 17037] std.concurrency has random segfaults

2021-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17037

Berni44  changed:

   What|Removed |Added

 CC||bugzi...@bernis-buecher.de

--- Comment #7 from Berni44  ---
Running "make -f posix.mak -j3 style" on my local computer I got this today:

double free or corruption (out)
Error: program killed by signal 6
make: *** [posix.mak:651: std/concurrency.publictests] Fehler 1

--


[Issue 20451] comparing identical floating points does not work on Win32 and FreeBSD32.

2021-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20451

--- Comment #11 from Dlang Bot  ---
@berni44 updated dlang/phobos pull request #7804 "[WIP] std.format: format
floats and doubles with %g / %G / %s" mentioning this issue:

- Add casts due to issue 20451.

https://github.com/dlang/phobos/pull/7804

--


[Issue 20451] comparing identical floating points does not work on Win32 and FreeBSD32.

2021-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20451

Berni44  changed:

   What|Removed |Added

 CC||bugzi...@bernis-buecher.de

--- Comment #10 from Berni44  ---
A more simple example, probably the same "bug":

unittest
{
double a = 0.995;
double b = 0.005;

writefln!"%.80f"(a);
writefln!"%.80f"(0.0001 - b);

assert(!(a < 0.0001 - b));
}

--


[Issue 15136] If we want toStringz to be fully correct, it needs to stop checking for '\0'

2021-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15136

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #5 from Dlang Bot  ---
@aG0aep6G created dlang/phobos pull request #7806 "fix issue 15136 - If we want
toStringz to be fully correct, it needs …" fixing this issue:

- fix issue 15136 - If we want toStringz to be fully correct, it needs to stop
checking for '\0'

https://github.com/dlang/phobos/pull/7806

--


[Issue 8600] "writeln" one parameter garbled

2021-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8600

Berni44  changed:

   What|Removed |Added

 CC||bugzi...@bernis-buecher.de

--- Comment #1 from Berni44  ---
I get:

test.d(6): Error: undefined identifier stdio in package core.stdc, perhaps add
static import core.stdc.stdio;

making the import static, like suggested yields:

test.d(6): Error: undefined identifier fwide

A working example (or a description what fails) would be nice...

--