[Issue 5588] New: Wrong line number

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 15 01:52:42 PST 2011


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

           Summary: Wrong line number
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: samukha at voliacable.com


--- Comment #0 from Max Samukha <samukha at voliacable.com> 2011-02-15 01:50:04 PST ---
enum x = 1; //line 1

void* foo()
{
    return x; //line 2
}

void main()
{
}

The error (Error: cannot implicitly convert expression (1) of type int to
void*) is reported to be on line 1 instead of line 2. 

Pretty confusing.

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