www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Bad error message example

reply Benjamin Thaut <code benjamin-thaut.de> writes:
Today I had a bad template error message and I though I might post it 
here so something can be done about it, the error message was:

/usr/include/dlang/dmd/std/conv.d(278): Error: template instance 
isRawStaticArray!() does not match template declaration 
isRawStaticArray(T, A...)

I was not using isRawStaticArray anywhere in my code. And the error was 
generally not helpfull at all and yes that was all of it. So after 
staring at my source file for 10 minutes I finally found the line that 
caused the error:

s.amount = to!double();

I accidentally deleted the contents between the two parentheses. It 
would be great if dmd would give a more meaningfull error message in 
this case. Why are the "instanciated from" messages sometimes given and 
sometimes not?

Kind Regards
Benjamin Thaut
Jan 05 2015
parent reply "Daniel Murphy" <yebbliesnospam gmail.com> writes:
"Benjamin Thaut"  wrote in message news:m8eian$21nu$1 digitalmars.com... 

 Today I had a bad template error message and I though I might post it 
 here so something can be done about it, the error message was:
Please report in bugzilla: http://d.puremagic.com/issues/
Jan 05 2015
parent Benjamin Thaut <code benjamin-thaut.de> writes:
Am 05.01.2015 um 18:51 schrieb Daniel Murphy:
 "Benjamin Thaut"  wrote in message news:m8eian$21nu$1 digitalmars.com...
 Today I had a bad template error message and I though I might post it
 here so something can be done about it, the error message was:
Please report in bugzilla: http://d.puremagic.com/issues/
Done: https://issues.dlang.org/show_bug.cgi?id=13942
Jan 05 2015