Bug 12970 – Enclosing @system attribute is precedence than postfix @safe

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-06-23T14:58:00Z
Last change time
2014-06-25T02:25:15Z
Keywords
pull, wrong-code
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2014-06-23T14:58:41Z
Test case: @system { @safe void f1() {} void f2() @safe {} pragma(msg, typeof(f1)); // @safe void() - OK pragma(msg, typeof(f2)); // @system void() - !? } Both f1 and f2 should be marked as @safe.
Comment #1 by k.hara.pg — 2014-06-23T15:06:54Z
Comment #2 by github-bugzilla — 2014-06-25T02:25:14Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/8ffe47a05165227751bd08d981c860c52be33ec4 fix Issue 12970 - Enclosing @system attribute is precedence than postfix @safe https://github.com/D-Programming-Language/dmd/commit/8f0d587b3e01789860294cac5c41d5c5889b4e6b Merge pull request #3688 from 9rnsr/fix12970 Issue 12970 - Enclosing @system attribute is precedence than postfix @safe