Bugzilla – Attachment 8 Details for
Bug 18
callgraph error (?) when using -fdebug and sort!del(some_array)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Bug creation and email sending has been disabled, file new bugs at
gcc.gnu.org/bugzilla
Code that fails
test.d (text/x-dsrc), 733 bytes, created by
lt.infiltrator
on 2012-10-23 21:45:48 CEST
(
hide
)
Description:
Code that fails
Filename:
MIME Type:
Creator:
lt.infiltrator
Created:
2012-10-23 21:45:48 CEST
Size:
733 bytes
patch
obsolete
>import std.algorithm; >import std.array; >import std.exception; > >void main() { > Foo foo = new Foo; > foo.sort_links(); >} > >class Foo { > struct Link { > int x; > int y; > } > > void sort_links() { > enforce(!_link.empty); > > bool lt(Link a, Link b) { > if(a.x > b.x) > return false; > if(a.x < b.x) > return true; > if(a.y >= b.y) > return false; > else > return true; > } > sort!(lt)(_link); > return; > } > > this() { > _link ~= Link(8, 3); > _link ~= Link(4, 7); > _link ~= Link(4, 6); > _link ~= Link(3, 7); > _link ~= Link(2, 7); > _link ~= Link(2, 2); > _link ~= Link(4, 1); > } > > Link[] _link; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 18
: 8 |
9
|
10