[Issue 14310] [REG2.067a] InvalidMemoryOperationError in std.stdio.File.byLine
https://issues.dlang.org/show_bug.cgi?id=14310 Martin Krejcirik m...@krej.cz changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #4 from Martin Krejcirik m...@krej.cz --- *** This issue has been marked as a duplicate of issue 13856 *** --
[Issue 13856] std.stdio.readln stomps arrays
https://issues.dlang.org/show_bug.cgi?id=13856 Martin Krejcirik m...@krej.cz changed: What|Removed |Added CC||m...@krej.cz --- Comment #4 from Martin Krejcirik m...@krej.cz --- *** Issue 14310 has been marked as a duplicate of this issue. *** --
[Issue 14310] [REG2.067a] InvalidMemoryOperationError in std.stdio.File.byLine
https://issues.dlang.org/show_bug.cgi?id=14310 --- Comment #3 from Martin Krejcirik m...@krej.cz --- It depend(In reply to Vladimir Panteleev from comment #2) I can't reproduce this on Windows. Looks like a duplicate of issue 13856 and particularly issue 14005 except for that this one is a regression? I have tried several older dmd versions and none crash, but it may be a coincidence. Also depends on input. --
[Issue 14310] [REG2.067a] InvalidMemoryOperationError in std.stdio.File.byLine
https://issues.dlang.org/show_bug.cgi?id=14310 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added CC||thecybersha...@gmail.com --- Comment #2 from Vladimir Panteleev thecybersha...@gmail.com --- I can't reproduce this on Windows. Looks like a duplicate of issue 13856 and particularly issue 14005 except for that this one is a regression? --
[Issue 14310] [REG2.067a] InvalidMemoryOperationError in std.stdio.File.byLine
https://issues.dlang.org/show_bug.cgi?id=14310 Martin Krejcirik m...@krej.cz changed: What|Removed |Added Component|druntime|Phobos --
[Issue 14301] [2.067-rc1] Private symbols of module conflicts with public from another
https://issues.dlang.org/show_bug.cgi?id=14301 Ivan Kazmenko ga...@mail.ru changed: What|Removed |Added CC||ga...@mail.ru --- Comment #11 from Ivan Kazmenko ga...@mail.ru --- Meanwhile, and a bit off topic, is there a convenient tool to do just that: diagnose missing imports? I asked on D.learn but received no response so far: http://forum.dlang.org/thread/yxzowmbhrcpkivkla...@forum.dlang.org --
[Issue 12744] auto ref crashes DMD on ASSERT
https://issues.dlang.org/show_bug.cgi?id=12744 --- Comment #1 from Tomer Filiba tomerfil...@gmail.com --- happens on dmd 2.66.1 as well: void f(int x, out int y) { } void g(ref ParameterTypeTuple!f params) { f(params); } dmd: mtype.c:9529: void Parameter::toDecoBuffer(OutBuffer*): Assertion `0' failed. [1]14388 abort (core dumped) dmd source/main.d --
[Issue 14308] New: Compiling druntime with -release breaks range exceptions
https://issues.dlang.org/show_bug.cgi?id=14308 Issue ID: 14308 Summary: Compiling druntime with -release breaks range exceptions Product: D Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: druntime Assignee: nob...@puremagic.com Reporter: temta...@gmail.com Hi ! When i compile druntime with -release flag and then builds an app using it, following code crashes: ubyte[3] aa; int n = 4; aa[n] = 5; If i compile it without -release, then all is OK. I don't know how this flag affects range exceptions in applications. Also i don't know is it a bug or as designed. But i think that druntime with -release flag should work. --
[Issue 14309] New: The difference between Microsoft's GUID and std.uuid.UUID
https://issues.dlang.org/show_bug.cgi?id=14309 Issue ID: 14309 Summary: The difference between Microsoft's GUID and std.uuid.UUID Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: normal Priority: P1 Component: Phobos Assignee: nob...@puremagic.com Reporter: zan77...@nifty.com In following code, I think it is hoped that `id` is the same as `IID_IClassFactory`, why does this happen? -- import std.stdio, core.sys.windows.com, std.uuid; pragma(lib, uuid); // for IID_IClassFactory void main() { // IID of IClassFactory // https://msdn.microsoft.com/en-us/library/microsoft.visualstudio.ole.interop.iclassfactory.aspx immutable id = UUID(0001---C000-0046); static assert(UUID.sizeof == 16); static assert(IID_IClassFactory.sizeof == 16); // 01 00 00 00 00 00 00 00 C0 00 00 00 00 00 00 46 writefln(IID_IClassFactory: %(%02X %), *cast(ubyte[16]*)IID_IClassFactory); // 00 00 00 01 00 00 00 00 C0 00 00 00 00 00 00 46 writefln(std.uuid.UUID: %(%02X %), id.data); assert(id.data == *cast(ubyte[16]*)IID_IClassFactory); // failure assert(UUID(0100---C000-0046).data == *cast(ubyte[16]*)IID_IClassFactory); // success } --
[Issue 14307] Ddoc: issue error on all functions that are missing ddoc sections
https://issues.dlang.org/show_bug.cgi?id=14307 Jacob Carlborg d...@me.com changed: What|Removed |Added CC||d...@me.com --- Comment #3 from Jacob Carlborg d...@me.com --- If you implement this, it should apply for protected symbols as well. --
[Issue 10664] Win64: exception handling does not work with COMDAT folding
https://issues.dlang.org/show_bug.cgi?id=10664 Temtaime temta...@gmail.com changed: What|Removed |Added CC||temta...@gmail.com --- Comment #1 from Temtaime temta...@gmail.com --- Is there any fix not workaround ? It increases .exe's size significantly. --
[Issue 14133] [REG 2.067] struct ctor init compiles very slow and produces excessive amounts of code
https://issues.dlang.org/show_bug.cgi?id=14133 Martin Nowak c...@dawg.eu changed: What|Removed |Added CC||etci...@gmail.com --- Comment #3 from Martin Nowak c...@dawg.eu --- Reported by Etienne Cimon. https://github.com/rejectedsoftware/vibe.d/issues/1016#issuecomment-83735025 --
[Issue 14301] [2.067-rc1] Private symbols of module conflicts with public from another
https://issues.dlang.org/show_bug.cgi?id=14301 Martin Nowak c...@dawg.eu changed: What|Removed |Added Keywords||pull --- Comment #15 from Martin Nowak c...@dawg.eu --- https://github.com/D-Programming-Language/phobos/pull/3081 --
[Issue 14300] [2.067-rc1] DList casting to base type is broken
https://issues.dlang.org/show_bug.cgi?id=14300 Martin Nowak c...@dawg.eu changed: What|Removed |Added Keywords||pull CC||c...@dawg.eu --- Comment #2 from Martin Nowak c...@dawg.eu --- https://github.com/D-Programming-Language/phobos/pull/3082 --
[Issue 14133] [REG 2.067] struct ctor init compiles very slow and produces excessive amounts of code
https://issues.dlang.org/show_bug.cgi?id=14133 Martin Nowak c...@dawg.eu changed: What|Removed |Added Priority|P1 |P3 CC||c...@dawg.eu Summary|change in struct ctor |[REG 2.067] struct ctor |lowering generates |init compiles very slow and |excessive init code |produces excessive amounts ||of code Severity|normal |regression --- Comment #1 from Martin Nowak c...@dawg.eu --- cat bug.d CODE struct Bug { size_t[16 * 1024] data; } void test() { auto b = Bug(); } CODE dmd -c bug It looks like related to issue 11233, but is most likely due to the change struct literal code, that not performs field assignment instead of copying the init array. --
[Issue 14304] [REG2.067a] ICE with static immutable variable CTFE
https://issues.dlang.org/show_bug.cgi?id=14304 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/9a6b349c3d9a1d991d429714c00fd103048ca792 fix Issue 14304 - ICE with static immutable variable CTFE https://github.com/D-Programming-Language/dmd/commit/6d8634bf1421be51413e5ba87154f5adf4bc7e30 Reduce memory space for CTFE The prior fix for issue 14304 is simple, but it will also increase the amount of memory space for CTFE (and actually breaks Phobos unittest in Windows platform). To fix performance issue without breaking CTFE behavior: - Mark the cached value of non-mutable static variable specially, to represent read-only constant. - Prevent modifications of read-only constant. - Once a value is owned by CTFE (including cached ones), we can avoid redundant copies for that, because the expression object can be used directly during interpretation. https://github.com/D-Programming-Language/dmd/commit/06537bcd9128b948a1feb35b4fd5e3cdd55c201c Merge pull request #4503 from 9rnsr/fix14304 [REG2.067a] Issue 14304 - ICE with static immutable variable CTFE --
[Issue 14304] [REG2.067a] ICE with static immutable variable CTFE
https://issues.dlang.org/show_bug.cgi?id=14304 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||ice, pull Hardware|x86_64 |All Summary|dmd: interpret.c:6724: void |[REG2.067a] ICE with static |setValue(VarDeclaration*, |immutable variable CTFE |Expression*): Assertion | |`(vd-storage_class| |(0x1000LL | 0x20LL)) ? | |isCtfeReferenceValid(newval | |) : | |isCtfeValueValid(newval)' | |failed. | OS|Linux |All --- Comment #3 from Kenji Hara k.hara...@gmail.com --- The occurred ICE (moved from the summary): dmd: interpret.c:6724: void setValue(VarDeclaration*, Expression*): Assertion `(vd-storage_class (0x1000LL | 0x20LL)) ? isCtfeReferenceValid(newval) : isCtfeValueValid(newval)' failed. Compiler fix: https://github.com/D-Programming-Language/dmd/pull/4503 --
[Issue 14133] [REG 2.067] struct ctor init compiles very slow and produces excessive amounts of code
https://issues.dlang.org/show_bug.cgi?id=14133 --- Comment #2 from Martin Nowak c...@dawg.eu --- mov%eax,-0x2(%rbp) mov%eax,-0x1fffc(%rbp) mov%eax,-0x1fff8(%rbp) ... mov%ecx,-0x1f804(%rbp) xor%edx,%edx // Why edx all of a sudden? mov%edx,-0x1f800(%rbp) ... mov%edx,-0xc(%rbp) mov%edx,-0x8(%rbp) mov%edx,-0x4(%rbp) In total 32768 4-byte assignments to initialize the struct. --
[Issue 14301] [2.067-rc1] Private symbols of module conflicts with public from another
https://issues.dlang.org/show_bug.cgi?id=14301 --- Comment #14 from Martin Nowak c...@dawg.eu --- yes, those fixes will break some code. but refusing to fix 'em will leave features broken forever, as there are more and more code that rely on broken things. https://yourlogicalfallacyis.com/strawman This is not what I was saying, Kenji's patch fixes 313 and 314, which is great, but it also unnecessarily changes how selective imports work. This will break a lot of code to make a behavior different not better. Nobody is against fixing imports, but it's a core language feature and has to be done carefully. --
[Issue 14056] std.array.assocArray with a const value
https://issues.dlang.org/show_bug.cgi?id=14056 Martin Nowak c...@dawg.eu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |WONTFIX --
[Issue 14301] [2.067-rc1] Private symbols of module conflicts with public from another
https://issues.dlang.org/show_bug.cgi?id=14301 --- Comment #16 from Ketmar Dark ket...@ketmar.no-ip.org --- (In reply to Martin Nowak from comment #14) This is not what I was saying, Kenji's patch fixes 313 and 314, which is great, but it also unnecessarily changes how selective imports work. it fixes *all* issues with selective imports. it *does* *not* contradicts specs. what is wrong then? --
[Issue 14285] [REG2.063] alias this to nothing is accepted
https://issues.dlang.org/show_bug.cgi?id=14285 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/dc0316f77b3c00ce1e483daffa8e28e2f5cded35 fix Issue 14285 - alias this to nothing is accepted https://github.com/D-Programming-Language/dmd/commit/83fe805eacc64e66818f726c1ad291ed28c48843 Merge pull request #4500 from 9rnsr/fix14285 [REG2.063] Issue 14285 - alias this to nothing is accepted --
[Issue 14285] [REG2.063] alias this to nothing is accepted
https://issues.dlang.org/show_bug.cgi?id=14285 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --
[Issue 14285] [REG2.063] alias this to nothing is accepted
https://issues.dlang.org/show_bug.cgi?id=14285 --- Comment #3 from github-bugzi...@puremagic.com --- Commit pushed to 2.067 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/7a0669d0081001bad8d72b592fe19bc9d6a63e82 Merge pull request #4500 from 9rnsr/fix14285 [REG2.063] Issue 14285 - alias this to nothing is accepted --
[Issue 14183] Updates to groupBy
https://issues.dlang.org/show_bug.cgi?id=14183 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --
[Issue 14183] Updates to groupBy
https://issues.dlang.org/show_bug.cgi?id=14183 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/c6520969eaa317d373bc288aec49e9e2ca077dc4 Fix Issue 14183 - Changes to groupBy * Renamed `groupBy` to `chunkBy` * Undocumented `aggregate` * Added `groupBy` member function to `SortedRange` * Unary `chunkBy` returns tuple of key and chunk. https://issues.dlang.org/show_bug.cgi?id=14183 https://github.com/D-Programming-Language/phobos/commit/fa297af0e69f5b097fad81263da74d2033fd2541 Merge pull request #3005 from Poita/Issue14183 Fix Issue 14183 - Changes to groupBy --
[Issue 14291] Druntime master no longer builds
https://issues.dlang.org/show_bug.cgi?id=14291 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added Keywords||pull Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #1 from Vladimir Panteleev thecybersha...@gmail.com --- https://github.com/D-Programming-Language/druntime/pull/1191 --
[Issue 14309] The difference between Microsoft's GUID and std.uuid.UUID
https://issues.dlang.org/show_bug.cgi?id=14309 --- Comment #1 from Sobirari Muhomori dfj1es...@sneakemail.com --- UUID is big endian, GUID is little endian, hence mismatch. --
[Issue 14247] string within demangled symbol name should be made escape
https://issues.dlang.org/show_bug.cgi?id=14247 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/af850d4bf770d593269f9467fb8e147b7b02380d fix Issue 14247 - string within demangled symbol name should be made escape https://github.com/D-Programming-Language/druntime/commit/fc3aa22994202565b369afc68d66a1cfa079b7d6 Merge pull request #1186 from 9rnsr/fix14247 Issue 14247 - string within demangled symbol name should be made escape --
[Issue 14247] string within demangled symbol name should be made escape
https://issues.dlang.org/show_bug.cgi?id=14247 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --
[Issue 14310] New: [REG2.067a] InvalidMemoryOperationError in std.stdio.File.byLine
https://issues.dlang.org/show_bug.cgi?id=14310 Issue ID: 14310 Summary: [REG2.067a] InvalidMemoryOperationError in std.stdio.File.byLine Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression Priority: P1 Component: druntime Assignee: nob...@puremagic.com Reporter: m...@krej.cz I get core.exception.InvalidMemoryOperationError@(0) when I run the following program on attached input file (XML). import std.algorithm, std.file, std.stdio, std.string; int main(string[] args) { if (args.length 2) { return 1; } size_t linect = 0; foreach (line; File(args[1]).byLine()) linect += 1; return 0; } Backtrace: Breakpoint 1, 0x080b07fc in _d_throwc () (gdb) bt #0 0x080b07fc in _d_throwc () #1 0x080b1208 in _d_arrayshrinkfit () #2 0x080ac4d4 in object.assumeSafeAppend!(char).assumeSafeAppend(ref inout(char[])) (arr=0x81210d4) at /home/mk/dmd2.test/src/druntime/import/object.di:662 #3 0x080abbc8 in std.stdio.File.ByLineImpl!(char, char).ByLineImpl.popFront() (this=0x81210c8) at /home/mk/dmd2.test/src/phobos/std/stdio.d:1677 #4 0x080ab9eb in std.stdio.File.ByLine!(char, char).ByLine.popFront() (this=0xd914) at /home/mk/dmd2.test/src/phobos/std/stdio.d:1624 #5 0x080ab88b in D main (args=...) at wcbug.d:10 (gdb) c Continuing. core.exception.InvalidMemoryOperationError@(0) This happens with 2.067b and master. 2.066 no error. System linux. --
[Issue 14310] [REG2.067a] InvalidMemoryOperationError in std.stdio.File.byLine
https://issues.dlang.org/show_bug.cgi?id=14310 --- Comment #1 from Martin Krejcirik m...@krej.cz --- Input file here: http://bid.iline.cz/~mk/tmp/wcbugxml.bz2 --
[Issue 14301] [2.067-rc1] Private symbols of module conflicts with public from another
https://issues.dlang.org/show_bug.cgi?id=14301 --- Comment #12 from Ketmar Dark ket...@ketmar.no-ip.org --- you can build dmd with the patch i mentioned and then simply use it to compile your code. ;-) --
[Issue 14301] [2.067-rc1] Private symbols of module conflicts with public from another
https://issues.dlang.org/show_bug.cgi?id=14301 --- Comment #13 from Ketmar Dark ket...@ketmar.no-ip.org --- ah, sorry, i see what you mean. no, i don't think that there is such tool yet. --
[Issue 14308] Compiling druntime with -release breaks range exceptions
https://issues.dlang.org/show_bug.cgi?id=14308 Ketmar Dark ket...@ketmar.no-ip.org changed: What|Removed |Added Status|NEW |RESOLVED CC||ket...@ketmar.no-ip.org Resolution|--- |INVALID --- Comment #1 from Ketmar Dark ket...@ketmar.no-ip.org --- this is the expected result: -release flag turns off bounds checking. it was designed to do so. using -release means i fully debugged my code and i'm sure that there either no out-of-bounds errors, or i'm checking that manually. so i'm closing the bug as invalid. --
[Issue 14308] Compiling druntime with -release breaks range exceptions
https://issues.dlang.org/show_bug.cgi?id=14308 Ketmar Dark ket...@ketmar.no-ip.org changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALID |--- --- Comment #2 from Ketmar Dark ket...@ketmar.no-ip.org --- ps. sorry. today is not a my day. --
[Issue 14308] Compiling druntime with -release breaks range exceptions
https://issues.dlang.org/show_bug.cgi?id=14308 --- Comment #3 from Temtaime temta...@gmail.com --- It's OK, but bounds checks are in my app compiled with different flags, not in druntime. Also if i compile it with -noboundscheck and without -release, all is working! --
[Issue 14308] Compiling druntime with -release breaks range exceptions
https://issues.dlang.org/show_bug.cgi?id=14308 --- Comment #4 from Temtaime temta...@gmail.com --- *it, i mean druntime --
[Issue 14308] Compiling druntime with -release breaks range exceptions
https://issues.dlang.org/show_bug.cgi?id=14308 --- Comment #5 from Ketmar Dark ket...@ketmar.no-ip.org --- yes, sorry, i misread your report. --
[Issue 8687] Variadic templates do not work properly with default arguments
https://issues.dlang.org/show_bug.cgi?id=8687 Marc Schütz schue...@gmx.net changed: What|Removed |Added CC||schue...@gmx.net --