enum sstring problem

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


On 6/15/2011 10:11 PM, Johann MacDonagh wrote:
> 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?

Looks like it is.

http://d.puremagic.com/issues/show_bug.cgi?id=5985

There's a patch that hasn't been pulled into dmd proper, but it looks 
more like a workaround.


More information about the Digitalmars-d-learn mailing list