Summary: Line-less error when passing the '.im' of floating
                    pointer value by reference
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-07-27 12:23:36 PDT ---
Test case:

void s6391(ref double x){}
void bug6391() {
    double d = 1;
x.d(4): Error: function x.s6391 (ref double x) is not callable using argument
types (double)
Error: 0 is not an lvalue

With template methods, it becomes hard to trace back where is the cause of this
line-less error, e.g.

void t6391(R)(ref R x){
    if ( > 0)
void bug6391b() {
    double d = 1;
Error: 0 is not an lvalue                                              //
x.d(7): Error: template instance x.t6391!(double) error instantiating  // why?

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to