[Issue 19183] DIP1000 defeated if auto used instead of scope in variable declaration with template this member function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 21 10:47:27 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=19183

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |petar.p.kirov at gmail.com

--- Comment #3 from ZombineDev <petar.p.kirov at gmail.com> ---
It seems that you're not passing -dip1000 on the command-line. I'm also on Arch
Linux. Here's what I get:

~/dlang/install.sh dmd
source ~/dlang/dmd-2.081.2/activate
dmd -dip1000 scope.d

  scope.d(7): Error: scope variable s assigned to gInts with longer lifetime

--


More information about the Digitalmars-d-bugs mailing list