[Issue 16104] Unions should allow fields with destructors, postblits, and invariants

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16104 --- Comment #4 from Andrei Alexandrescu --- (In reply to Walter Bright from comment #2) > Consider: > > struct S { ~this(); } > struct T { S s; } > > The compiler will automatically create a destructor for T that will call the > destructor for

[Issue 16104] Unions should allow fields with destructors, postblits, and invariants

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16104 --- Comment #3 from Andrei Alexandrescu --- (In reply to Walter Bright from comment #1) > In C++: > > struct S { ~S(); }; > union U { S s; }; > > g++ -c foo.cpp > foo.cpp:2:14: error: member 'S U::s' with destructor not allowed in union > un

[Issue 16104] Unions should allow fields with destructors, postblits, and invariants

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16104 --- Comment #2 from Walter Bright --- Consider: struct S { ~this(); } struct T { S s; } The compiler will automatically create a destructor for T that will call the destructor for s, or will add code to do that to the destructor for T. union

[Issue 16104] Unions should allow fields with destructors, postblits, and invariants

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16104 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #1 from

[Issue 16104] New: Unions should allow fields with destructors, postblits, and invariants

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16104 Issue ID: 16104 Summary: Unions should allow fields with destructors, postblits, and invariants Product: D Version: D2 Hardware: x86_64 OS: Linux Stat

[Issue 16098] align(32) not respected for stack variables

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16098 Ketmar Dark changed: What|Removed |Added CC||ket...@ketmar.no-ip.org --- Comment #1 from Ke

[Issue 16085] wrong visibility warning for overloaded alias symbol

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16085 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #8 from

[Issue 16102] [REG2.070] struct dtor replace value on stack

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16102 ag0ae...@gmail.com changed: What|Removed |Added CC||ag0ae...@gmail.com Summary|st

[Issue 16102] struct dtor replace value on stack

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16102 Oleg B changed: What|Removed |Added Keywords||wrong-code --

[Issue 16103] New: DDOC module-level function list descriptions refer to unknown parameter names

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16103 Issue ID: 16103 Summary: DDOC module-level function list descriptions refer to unknown parameter names Product: D Version: D2 Hardware: All OS: All St

[Issue 16102] New: struct dtor replace value on stack

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16102 Issue ID: 16102 Summary: struct dtor replace value on stack Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: major Priority: P1

[Issue 16085] wrong visibility warning for overloaded alias symbol

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16085 Martin Nowak changed: What|Removed |Added Summary|Imported name causes lookup |wrong visibility warning |d

[Issue 16101] New: ddoc inserts empty section with newline

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16101 Issue ID: 16101 Summary: ddoc inserts empty section with newline Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: minor Priorit

[Issue 16100] Error with -O of struct enumeration value and comma operator

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16100 --- Comment #1 from Johan Engelen --- Also fails with DMD 2.068.2. (important: "-O" must be used, without "-O" it works) --

[Issue 16100] New: Error with -O of struct enumeration value and comma operator

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16100 Issue ID: 16100 Summary: Error with -O of struct enumeration value and comma operator Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 11810] std.stdio.byLine/readln performance is very bad

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11810 Andrei Alexandrescu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 16099] New: Inconsistent rules for overloading lambdas

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16099 Issue ID: 16099 Summary: Inconsistent rules for overloading lambdas Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority

[Issue 16085] Imported name causes lookup deprecation warning even if masked by member name

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16085 --- Comment #7 from Andrei Alexandrescu --- (In reply to Martin Nowak from comment #6) > (In reply to Andrei Alexandrescu from comment #5) > > The issue is subtler than that (I'd agree the snippet above is a clear cut). > > The thing is Bucketizer _a

[Issue 16085] Imported name causes lookup deprecation warning even if masked by member name

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16085 --- Comment #6 from Martin Nowak --- (In reply to Andrei Alexandrescu from comment #5) > The issue is subtler than that (I'd agree the snippet above is a clear cut). > The thing is Bucketizer _also_ defines its own reallocate: Ah, I was already wond

[Issue 16085] Imported name causes lookup deprecation warning even if masked by member name

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16085 Andrei Alexandrescu changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALID

[Issue 15857] incorrect checkimports mismatch for overload sets

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15857 --- Comment #8 from Jacob Carlborg --- This is not fixed in v2.071.1-b2. --

[Issue 16098] New: align(32) not respected for stack variables

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16098 Issue ID: 16098 Summary: align(32) not respected for stack variables Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Keywords: C++, SIMD

[Issue 16087] Alignment (.alignof) and stack space incorrect for SIMD types.

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16087 --- Comment #2 from Marco Leise --- Ok, different sources report that major compilers (llvm, gcc, icc) respect alignments >= 16 on the stack. I'll open a separate issue for that. --

[Issue 16097] New: Confusing error message when concatenating const(char)*

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16097 Issue ID: 16097 Summary: Confusing error message when concatenating const(char)* Product: D Version: D2 Hardware: All OS: All Status: NEW Se

[Issue 16093] Trivial case of passing a template function to another template function doesn't compile

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16093 Max Samukha changed: What|Removed |Added Severity|normal |critical --- Comment #3 from Max Samukha ---

[Issue 16096] New: Linking to static library: can't parse __DATA/__objc_imageinfo

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16096 Issue ID: 16096 Summary: Linking to static library: can't parse __DATA/__objc_imageinfo Product: D Version: D2 Hardware: x86_64 OS: Mac OS X Status: N

[Issue 16095] New: a delegate can mutate immutable data

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16095 Issue ID: 16095 Summary: a delegate can mutate immutable data Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: major Priority:

[Issue 16089] Outdated "D on GitHub" link.

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16089 Bastiaan Veelo changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 16094] error: overlapping slice assignment (CTFE)

2016-05-30 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16094 ag0ae...@gmail.com changed: What|Removed |Added Keywords||rejects-valid CC|