[Issue 8414] with statement causes linker error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 9 13:55:48 PDT 2012


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



--- Comment #3 from Salih Dincer <salihdb at hotmail.com> 2012-08-09 13:55:46 PDT ---
Okay, samples below can be read at compile-time error messages:

Sample-1:
void main()
{
    Enum en;

    with (Enum)  // <-- ERROR: found '}' instead of statement

}

Sample-2:
void main()
{
    Enum en;

    with (Enum); // <-- ERROR: use '{ }' for an empty statement, not a ';'

}

Well, this code is doing what you want! Yes, it's a linker bug...

void main()
{
    Enum en;

    with (Enum) // <-- NO ERROR!
    if(true) en1.writeln;
}

Surprised...:)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list