[Issue 12660] Wrong non-@nogc function invariant error

2014-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12660

Kenji Hara k.hara...@gmail.com changed:

   What|Removed |Added

   Keywords||pull

--- Comment #4 from Kenji Hara k.hara...@gmail.com ---
https://github.com/D-Programming-Language/dmd/pull/3586

--


[Issue 12660] Wrong non-@nogc function invariant error

2014-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12660

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


[Issue 12660] Wrong non-@nogc function invariant error

2014-05-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12660

--- Comment #5 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/dae8ad7b17a18e6f1aad85a2fab1bf32bce28910
fix Issue 12660 - Wrong non-@nogc function invariant error

https://github.com/D-Programming-Language/dmd/commit/e9bb4a2e7c6a0c11d37c3fb8d655af980cae7feb
Merge pull request #3586 from 9rnsr/fix12660

Issue 12660 - Wrong non-@nogc function invariant error

--


[Issue 12660] Wrong non-@nogc function invariant error

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12660

yebblies yebbl...@gmail.com changed:

   What|Removed |Added

 CC||yebbl...@gmail.com
   Hardware|x86 |All
 OS|Windows |All

--- Comment #1 from yebblies yebbl...@gmail.com ---
I vaguely recall this being about attributes on the LHS of invariants being
ignored.

--


[Issue 12660] Wrong non-@nogc function invariant error

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12660

--- Comment #2 from bearophile_h...@eml.cc ---
(In reply to yebblies from comment #1)
 I vaguely recall this being about attributes on the LHS of invariants being
 ignored.

If I put @nogc on the right:


class Foo {
this() @nogc {}
invariant() @nogc {}
}
void main() {}


temp.d(3,17): Error: statement expected to be { }, not @
temp.d(3,23): Error: basic type expected, not {
temp.d(3,23): Error: no identifier for declarator int
temp.d(3,23): Error: Declaration expected, not '{'
temp.d(5,15): Error: } expected following member declarations in aggregate

--


[Issue 12660] Wrong non-@nogc function invariant error

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12660

--- Comment #3 from yebblies yebbl...@gmail.com ---
Different problem.

--