Strange error message with alias

Karen Lanrap karen at digitaldaemon.com
Fri Oct 20 09:29:04 PDT 2006


Roberto Mariottini wrote:

> C:\Down\dlang>dmd test.d

You do not have a main() but you are stating to the compiler that 
there is a main(). Not having a main() has to be denoted by the '-c' 
option, which make the message vanish.

If you would call one of the 'f' you would get a not so cryptic error 
message. 

> _D8test1fFiZv
> It is also difficult to find which symbol is duplicated.

The mangled name shoukd read '_D4test1fFiZv'. May be you want to 
write your own little demangle tool.



More information about the Digitalmars-d-bugs mailing list