[Issue 7843] New: Regression(2.059 beta): Informational warning fails to produce executable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 5 21:16:02 PDT 2012


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

           Summary: Regression(2.059 beta): Informational warning fails to
                    produce executable
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: cbkbbejeap at mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbejeap at mailinator.com> 2012-04-05 21:16:40 PDT ---
struct Foo
{
    const hash_t toHash()
    {
        return 0;
    }
}

void main()
{
}

------------------------------

>test
'test' is not recognized as an internal or external command,
operable program or batch file.

>dmd -wi test.d
test.d(3): Warning: toHash() must be declared as extern (D) uint toHash() const
pure nothrow @safe, not const uint()

>test
'test' is not recognized as an internal or external command,
operable program or batch file.

>dmd test.d

>test
(ok)

>

-- 
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