Jump to page: 1 2
Thread overview
[Issue 17512] [REG 2.073] wrong deduction of "return" function attribute
[Issue 17512] Unclear error message when returning a reference to local variable
[Issue 17512] [REG 2.073] Error on bad interplay of "auto ref" and "return" attribute deduction.
[Issue 17512] [REG 2.073] [DIP1000] Error on bad interplay of "auto ref" and "return" attribute deduction.
Jun 16, 2017
ZombineDev
Jun 18, 2017
Vladimir Panteleev
Jan 20, 2018
Carsten Blüggel
Feb 15, 2018
Carsten Blüggel
Feb 15, 2018
Carsten Blüggel
[Issue 17512] [REG 2.073] [DIP1000] Error on bad interplay of 'auto ref' and 'return' attribute deduction.
Mar 11, 2018
Walter Bright
Mar 11, 2018
Walter Bright
Mar 22, 2018
John Colvin
Mar 22, 2018
Carsten Blüggel
Mar 26, 2018
Walter Bright
June 15, 2017
https://issues.dlang.org/show_bug.cgi?id=17512

johanengelen@weka.io changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |industry, rejects-valid

--
June 15, 2017
https://issues.dlang.org/show_bug.cgi?id=17512

johanengelen@weka.io changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|rejects-valid               |

--
June 15, 2017
https://issues.dlang.org/show_bug.cgi?id=17512

johanengelen@weka.io changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|regression                  |normal

--- Comment #1 from johanengelen@weka.io ---
Wait... is this even valid code?
It's escaping a reference to a local value.

The error message could be much improved.

--
June 15, 2017
https://issues.dlang.org/show_bug.cgi?id=17512

johanengelen@weka.io changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[REG 2.073] wrong deduction |Unclear error message when
                   |of "return" function        |returning a reference to
                   |attribute                   |local variable

--
June 15, 2017
https://issues.dlang.org/show_bug.cgi?id=17512

--- Comment #2 from johanengelen@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)

--
June 15, 2017
https://issues.dlang.org/show_bug.cgi?id=17512

johanengelen@weka.io changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Unclear error message when  |[REG 2.073] Error on bad
                   |returning a reference to    |interplay of "auto ref" and
                   |local variable              |"return" attribute
                   |                            |deduction.
           Severity|normal                      |regression

--
June 16, 2017
https://issues.dlang.org/show_bug.cgi?id=17512

ZombineDev <petar.p.kirov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |safe
                 CC|                            |petar.p.kirov@gmail.com
            Summary|[REG 2.073] Error on bad    |[REG 2.073] [DIP1000] Error
                   |interplay of "auto ref" and |on bad interplay of "auto
                   |"return" attribute          |ref" and "return" attribute
                   |deduction.                  |deduction.

--
June 18, 2017
https://issues.dlang.org/show_bug.cgi?id=17512

Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow@gmail.com

--- Comment #3 from Vladimir Panteleev <thecybershadow@gmail.com> ---
FWIW, the error starts appearing after https://github.com/dlang/dmd/pull/6452

--
January 20, 2018
https://issues.dlang.org/show_bug.cgi?id=17512

Carsten Blüggel <chilli@posteo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chilli@posteo.net

--
February 15, 2018
https://issues.dlang.org/show_bug.cgi?id=17512

Carsten Blüggel <chilli@posteo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |18444


Referenced Issues:

https://issues.dlang.org/show_bug.cgi?id=18444
[Issue 18444] [DIP25][DIP1000] Tracking issue for: "The implementation doesn't
match DIPs 25/1000"
--
« First   ‹ Prev
1 2