Bugzilla – Attachment 4 Details for
Bug 7
ARM: runnable/aliasthis.d fails with -O2
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
reduced test case
aliasthis.d (text/x-dsrc), 461 bytes, created by
Johannes Pfau
on 2012-09-25 09:07:04 CEST
(
hide
)
Description:
reduced test case
Filename:
MIME Type:
Creator:
Johannes Pfau
Created:
2012-09-25 09:07:04 CEST
Size:
461 bytes
patch
obsolete
>struct Tup(T...) >{ > T field; > alias field this; > > bool opEquals(const Tup rhs) > { > foreach (i, _; T) > if (field[i] != rhs.field[i]) > return false; > return true; > } >} > >Tup!T tup(T...)(T fields) >{ > return typeof(return)(fields); >} > >void main() >{ > int eval; > > foreach (i, e; tup(eval++, tup(3.14, tup("str", tup([1,2]))))) > static if (i == 1) assert(e == tup(3.14, tup("str", tup([1,2])))); >}
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 7
: 4 |
5