enum sstring problem

Johann MacDonagh johann.macdonagh..no at spam..gmail.com
Wed Jun 15 19:11:57 PDT 2011


On 6/15/2011 5:32 PM, Jos van Uden wrote:
> Using 2.053 on win32 (XP), compiles and runs.

Ah! I found the problem. If you're using VisualD it compiles with the -g 
flag (add symbolic debug info), which fails:

main.d(4): Error: Integer constant expression expected instead of "hello"
main.d(5): Error: Integer constant expression expected instead of "betty"
main.d(4): Error: Integer constant expression expected instead of "hello"
main.d(5): Error: Integer constant expression expected instead of "betty"

If you compile with just "dmd main.d" in the command line it works. It's 
a bug. Anyone know if it's submitted yet?


More information about the Digitalmars-d-learn mailing list