Bug 13908 – @safe write of a (uint, uint) tuple

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2014-12-29T12:42:00Z
Last change time
2015-03-05T17:58:39Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2014-12-29T12:42:00Z
Printing such tuple such be safe: void main() @safe { import std.stdio, std.typecons; Tuple!(uint, uint) p; write(p); } dmd 2.067alpha gives: temp.d(4,10): Error: safe function 'D main' cannot call system function 'std.stdio.write!(Tuple!(uint, uint)).write'
Comment #1 by john.loughran.colvin — 2015-03-05T13:44:35Z
Works for me on git HEAD.