[Issue 17512] Unclear error message when returning a reference to local variable
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Thu Jun 15 15:12:40 PDT 2017
    
    
  
https://issues.dlang.org/show_bug.cgi?id=17512
--- Comment #2 from johanengelen at weka.io ---
Or... it _is_ a frontend bug, as the compiler should deduce that the return
type cannot be 'ref'. It correctly deduces that ("does not return any
indirections") but because it added "return" function attribute earlier, the
error happens.
(sorry for the confusion, not thinking clearly)
--
    
    
More information about the Digitalmars-d-bugs
mailing list