www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [minor] compiler message

reply Ant <duitoolkit yahoo.ca> writes:
I just got

"/home/ruimt/dmd/src/phobos/std/c/windows/windows.d(9): static assert (0)is
false"

from the compiler (linux dmd 0.111).

Now, which of my source files is trying to import that?

this is a minor problem for small application,
huge otherwise.

Ant
Jan 22 2005
parent reply Ben Hinkle <Ben_member pathlink.com> writes:
In article <pan.2005.01.22.18.44.46.169255 yahoo.ca>, Ant says...
I just got

"/home/ruimt/dmd/src/phobos/std/c/windows/windows.d(9): static assert (0)is
false"

from the compiler (linux dmd 0.111).

Now, which of my source files is trying to import that?

this is a minor problem for small application,
huge otherwise.

Ant
That's one thing about imports that would be nice: error messages that give the import chain. For example /home/ruimt/dmd/src/phobos/std/c/windows/windows.d(9): static assert (0)is false /home/ruimt/foo.d(15) /home/ruimt/bar.d(20) when compiling bar.d. I don't know if I'd call the problem "huge" since a grep or two usually is enough to find the chain but it is annoying. For example "grep std.c.windows -r ." (sorry if this is insulting to suggest you don't grep for stuff like this regularly - or do various find/grep combinations)
Jan 22 2005
parent Ant <duitoolkit yahoo.ca> writes:
On Sat, 22 Jan 2005 22:36:13 +0000, Ben Hinkle wrote:

 In article <pan.2005.01.22.18.44.46.169255 yahoo.ca>, Ant says...
I just got

"/home/ruimt/dmd/src/phobos/std/c/windows/windows.d(9): static assert (0)is
false"

from the compiler (linux dmd 0.111).

Now, which of my source files is trying to import that?

this is a minor problem for small application,
huge otherwise.

Ant
That's one thing about imports that would be nice: error messages that give the import chain. For example /home/ruimt/dmd/src/phobos/std/c/windows/windows.d(9): static assert (0)is false /home/ruimt/foo.d(15) /home/ruimt/bar.d(20) when compiling bar.d. I don't know if I'd call the problem "huge" since a grep or two usually is enough to find the chain but it is annoying. For example "grep std.c.windows -r ." (sorry if this is insulting to suggest you don't grep for stuff like this regularly - or do various find/grep combinations)
maybe "-v" will do it, let me try... yes: " [...] semantic2 SArray semantic2 Stack semantic2 String semantic2 System /home/ruimt/dmd/src/phobos/std/c/windows/windows.d(9): static assert (0) is false semantic2 BufferedFile semantic2 BufferedStream semantic2 Bug [...] " System.d has the import for window on linux. this is not ideal, of course, but will help until Walter fixes it. Ant PS Thank you the for the grep suggestion. of course I use grep but this being a public group we expect others to benefit from any suggestion. on this case grep returned only 6 hits... PPS finally I have some spell checking working with pan:)
Jan 22 2005