[Issue 5948] Different error messages for int array

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5948

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 5153] Struct pointer to struct variable assign error message

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5153

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 6138] Using dirEntries and chdir() can have unwanted results

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6138

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 5753] Disallow map() of void function

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5753

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 5243] dmd -run potentially removes user files

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5243

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 5236] [patch] std.format.formattedRead/unformatValue does not support the raw reading of integer types

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5236

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp

--


[Issue 5727] "ptr" in inline asm

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5727

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 5813] [patch] std.array.Appender has severe performance and memory leak problems.

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5813

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp

--


[Issue 6132] extern (C) Silently Ignored Within D Classes

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6132

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--- Comment #5 from Andrei Alexandrescu  ---
@Martin so is there anything to fix for this?

--


[Issue 6033] Better error message with numbers with leading zeros

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6033

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 5646] add rationale for TLS being the default

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5646

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 6142] 32- and 64-bit libraries are combined without error

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6142

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--- Comment #2 from Andrei Alexandrescu  ---
Fixing this would be quite nice.

--


[Issue 6179] scope should be removed from the documentation

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6179

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||and...@erdani.com
 Resolution|--- |FIXED

--- Comment #3 from Andrei Alexandrescu  ---
It's being used so I'll close this.

--


[Issue 5644] The mangling of constructors is not documented by the ABI.

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5644

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 6151] [GC] Make the GC functions weakly pure

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6151

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||and...@erdani.com
 Resolution|--- |FIXED

--- Comment #3 from Andrei Alexandrescu  ---
We still have https://issues.dlang.org/show_bug.cgi?id=15862. But we can close
this.

--


[Issue 5971] Some BigInt ideas

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5971

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 5650] A RedBlackTree performance problem

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5650

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 5880] std.numerics.dotProduct for fixed-size arrays

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5880

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 6034] Handy mapping with n-adic functions

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6034

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 5756] amap() and maybe afilter() too

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5756

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 6019] Phobos imports in autogenerated .di header files break implicit linking with DLLs

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6019

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 5968] std.algorithm.group by key function + groupFull

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5968

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 16071] Source file path and module name should match exactly

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16071

Mathias Lang  changed:

   What|Removed |Added

 CC||andrej.mitrov...@gmail.com

--- Comment #3 from Mathias Lang  ---
*** Issue 9194 has been marked as a duplicate of this issue. ***

--


[Issue 5813] [patch] std.array.Appender has severe performance and memory leak problems.

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5813

--- Comment #21 from Andrei Alexandrescu  ---
What's the status of this?

--


[Issue 6023] std.random.uniform and std.bigint.BigInt compilation error

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6023

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 5995] string append negative integer causes segfault

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5995

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 9194] Module imports are not properly checked when found in import path

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9194

Mathias Lang  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||mathias.l...@sociomantic.co
   ||m
 Resolution|--- |DUPLICATE

--- Comment #1 from Mathias Lang  ---
According to Walter, this is by design. See the duplicate bug.

*** This issue has been marked as a duplicate of issue 16071 ***

--


[Issue 6007] BigInt->string performance

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6007

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 6004] std.range.unzip()

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6004

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 5543] to!int to see a char as a single-char string

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5543

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 5618] Fix separator schizophrenia

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5618

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 4851] Three suggestions for std.random

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4851

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp

--- Comment #8 from Andrei Alexandrescu  ---
Adding some of my own:

* uniform!int should give a uniform, full-range int. Same of course for all
integral types.

* uniform!bool should give a random bit (economically, i.e. generate a new
64-bit number every 64 calls)

* uniform!double should give a double in the range [0.0, 1.0). Or is [0.0, 1.0]
more appropriate?

* uniform!(int[])(30) should return an array of 30 integers

* uniform!string(30) should return a uniform string of 30... bytes or code
points?

--


[Issue 5609] struct opEquals doesn't conform to language specifications.

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5609

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 4716] std.stdio.input() or similar

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4716

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||and...@erdani.com
 Resolution|--- |WONTFIX

--


[Issue 5559] A static down cast in Phobos

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5559

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 5562] Add OS=win32wine build to druntime's posix.mak

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5562

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--- Comment #2 from Andrei Alexandrescu  ---
This would be great because it would allow us to unittest for Windows (at least
to some extent) on Linux machines. FWIW I'd added such for Phobos a long time
ago and it worked but it has since bitrotten (and probably disappeared)

--


[Issue 5573] Compiler (not linker) should generate an error for missing main()

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5573

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 5076] std.algorithm.sorted / schwartzSorted

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5076

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp

--


[Issue 5037] std.variant.Algebraic test use case

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5037

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 Status|ASSIGNED|NEW

--- Comment #1 from Andrei Alexandrescu  ---
We have limited support for self-referential structures now, so we should be
able to work on this.

--


[Issue 5051] dmd flag for partial compilation (similar to just running preprocessor in C/C++)

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5051

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--- Comment #10 from Andrei Alexandrescu  ---
That would be an interesting project. I'm envisioning it as a standalone
program called e.g. "dlower" that lowers D code into a smaller subset of D.
Possible flags for that program:

--expand-mixins = expand all possible mixins in the code

--lookup = execute lookup on all symbols and write the full symbol, e.g.
writeln becomes .std.stdio.writeln

--operators = explicitate all user-defined operators, e.g. a + b becomes
a.opBinary!"+"(b)

--omit-function-bodies = do not output function bodies, .di style

--specialize-templates = write specialized versions for all templates used
within the module (this is likely to be tricky)

--scope = lower all scope statements into try statements

--foreach = lower all foreach statements into for statements

--explicit-import = specify the exact symbols needed for each import statement
(which means: if no symbols, the import is redundant - easy to mark as a
warning by a subsequent tool)

--static-if = evaluate all static ifs possible (this mostly makes sense if
--specialize-templates is also present)

--versions = lower code using version(), i.e. make the unused branch disappear

--omit-comments = make all comments disappear

--omit-nondoc-comments = make only non-documentation comments disappear

--ctfe = evaluate all possible CTFEs (tricky)

The tool should generate compilable D code with the same semantics as the input
and #line directives pointing to the input.

Such a tool would make possible a bunch of others. I'll talk to the graduate
students, maybe someone will take this.

--


[Issue 5137] Compiler tips

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5137

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||and...@erdani.com
 Resolution|--- |DUPLICATE

--- Comment #3 from Andrei Alexandrescu  ---
I'll mark this as a dupe of 5051 because tips could be a part of that tool.

*** This issue has been marked as a duplicate of issue 5051 ***

--


[Issue 5077] std.algorithm.schwartzSort is slow

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5077

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp

--


[Issue 4946] Not good error message with wrongly positioned 'const'

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4946

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 5051] dmd flag for partial compilation (similar to just running preprocessor in C/C++)

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5051

--- Comment #11 from Andrei Alexandrescu  ---
*** Issue 5137 has been marked as a duplicate of this issue. ***

--


[Issue 4907] Catching more simple out-of-bounds errors at compile-time

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4907

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 4937] std.bitmanip: Allow repeated (identical) bitfield declarations

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4937

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |WONTFIX

--


[Issue 4965] Lacking int, uint etc. versions of most std.math functions

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4965

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||and...@erdani.com
 Resolution|--- |WONTFIX

--- Comment #5 from Andrei Alexandrescu  ---
Guess I'll close this for now. Please reopen if there are new insights.

--


[Issue 5091] main runs after unittests

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5091

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||and...@erdani.com
 Resolution|--- |WONTFIX

--- Comment #13 from Andrei Alexandrescu  ---
I'll close this as we can't really make radical behavior changes right now.
@Martin, anything we need to look at?

--


[Issue 4896] GCC not accessed as a variable in linux.mak

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4896

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||and...@erdani.com
 Resolution|--- |FIXED

--- Comment #1 from Andrei Alexandrescu  ---
Fixed a while ago.

--


[Issue 4705] std.algorithm.max/min with key function, for a single range, + mins/maxs functions

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4705

Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #26 from Andrei Alexandrescu  ---
Apparently it's due in the next release, so I'll preemptively mark this as
fixed.

--


[Issue 5124] Make std.algorithm.sort weakly pure

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5124

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--- Comment #1 from Andrei Alexandrescu  ---
sort is weakly pure, bootcamping for the other issues

--


[Issue 5078] Some possible improvements for std.algorithm.schwartzSort()

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5078

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp

--


[Issue 4763] std.stdio.File.open() : more efficient implementation

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4763

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--- Comment #9 from Andrei Alexandrescu  ---
No allocation => win. I'm bootcamping this.

--


[Issue 4747] Make each unittest block a separate function that runs independently of the others

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4747

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp

--


[Issue 4747] Make each unittest block a separate function that runs independently of the others

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4747

Andrei Alexandrescu  changed:

   What|Removed |Added

 CC||and...@erdani.com

--- Comment #6 from Andrei Alexandrescu  ---
Has this been resolved?

--


[Issue 4722] Debug Phobos lib

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4722

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 4705] std.algorithm.max/min with key function, for a single range, + mins/maxs functions

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4705

--- Comment #25 from Andrei Alexandrescu  ---
Aftermath: http://forum.dlang.org/post/ntqjd2$28fq$1...@digitalmars.com and then
we can mark this as fixed.

--


[Issue 4669] Unit tests do not work in libraries compiled by dmd with -lib

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4669

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 2742] std.stdio assumes console works in utf-8

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2742

--- Comment #15 from Walter Bright  ---
When I start a command prompt in Windows, I run the command:

chcp 65001

which sets it to Unicode.

--


[Issue 1660] DFLAGS environment variables is not working

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1660

Vladimir Panteleev  changed:

   What|Removed |Added

 CC||thecybersha...@gmail.com

--- Comment #6 from Vladimir Panteleev  ---
The configuration file can reference existing environment variables. Thus, if
you want dmd to get command-line options from the environment, append
%MY_DFLAGS% at the end of the DFLAGS setting in the configuration file, and
specify your flags in the MY_DFLAGS variable.

--


[Issue 16612] New: Bug in std.regex? in dmd? Segmentation fault

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16612

  Issue ID: 16612
   Summary: Bug in std.regex? in dmd? Segmentation fault
   Product: D
   Version: D2
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: normal
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: dpyurche...@admomsk.ru

# cat issue.d
import std.regex;
import std.stdio;

void main()
{
auto r = regex(r"[0-9]");
foreach(line; stdin.byLine)
{
try
{
auto m = matchAll(line, r);
}
catch(Exception e)
continue;
}
}

# dmd --version
DMD64 D Compiler v2.071.2
Copyright (c) 1999-2015 by Digital Mars written by Walter Bright

# dmd issue.d
# file issue
issue: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked,
interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32,
BuildID[sha1]=aca6ea48b10e8b41a49510e3a2348811347f7246, not stripped
# ldd issue
linux-vdso.so.1 (0x7ffe8e9e5000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x7f1f02b89000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x7f1f02888000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x7f1f0268)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x7f1f0247c000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1
(0x7f1f02266000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7f1f01ebb000)
/lib64/ld-linux-x86-64.so.2 (0x7f1f02da6000)
# time ./issue < /dev/urandom
Segmentation fault

real0m4.389s
user0m1.716s
sys 0m2.664s

# ldc2 --version
LDC - the LLVM D compiler (1.1.0-beta3):
  based on DMD v2.071.2 and LLVM 3.9.0
  built with LDC - the LLVM D compiler (1.1.0-beta3)
  Default target: x86_64-unknown-linux-gnu
  Host CPU: penryn
  http://dlang.org - http://wiki.dlang.org/LDC

  Registered Targets:
x86- 32-bit X86: Pentium-Pro and above
x86-64 - 64-bit X86: EM64T and AMD64
# ldc2 issue.d
# file issue
issue: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked,
interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32,
BuildID[sha1]=f7bba9ffa9fe9ed20514248f9b86bbb3b46115f4, not stripped
# ldd issue
linux-vdso.so.1 (0x7ffd867e6000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x7f798f2c6000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x7f798f0c2000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x7f798eea5000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x7f798eba4000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1
(0x7f798e98e000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7f798e5e3000)
/lib64/ld-linux-x86-64.so.2 (0x7f798f4ce000)
# time ./issue < /dev/urandom
^C

real6m28.451s
user2m3.708s
sys 4m24.472s
# uname -a
Linux host 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64
GNU/Linux

--


[Issue 16484] regression(2.064) Overloaded empty funcs trigger AssertError: "Called `get' on null Nullable"

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16484

--- Comment #5 from ag0ae...@gmail.com ---
(In reply to Walter Bright from comment #3)
> (In reply to ag0aep6g from comment #2)
> > void foo(T)(Nullable!T value) {}
> 
> Considered:
> "match with conversion for initial template arguments"

Here "with conversion" means that it needs template argument inference, right?

> "exact match for inferred template arguments"
> 
> > void foo()(int i) { assert(false); /* hit */ }
> 
> Considered:
>"exact match for initial template arguments"
>"exact match for inferred template arguments"

But this one is not an exact match. It involves an `alias this` conversion from
Nullable!int to int.

As far as I can tell, it should be:
  "match with conversion for initial template arguments"
  "match with conversion for inferred template arguments"

Or maybe just "match with conversion" since there are no template parameters.
The empty template parentheses can actually be omitted without changing the
behavior of the code.

--


[Issue 1001] print stack trace (in debug mode) when program die

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1001

--- Comment #81 from Vladimir Panteleev  ---
Worth noting that I think something changed within the 2 years since the last
message from 2014, since we now have stack traces with line numbers on Linux.

--


[Issue 2742] std.stdio assumes console works in utf-8

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2742

Vladimir Panteleev  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |WONTFIX

--- Comment #14 from Vladimir Panteleev  ---
I think we should let this one go.

1. To see international characters in the first place, you have to change the
console font from a raster one.
2. Setting the output console CP to 65001 is not an option because it breaks
spawned programs. In particular, batch files stop working. Problems also occur
if the console isn't changed back.
3. Changing the data's output encoding according to the user's locale cannot be
done if the output is a file or pipe, as it would be a breaking change.
4. As a result, the only way to do this is to check if the output is the
console. However, because we do output via the C standard library, whatever
stdout points to may change at any moment, so we cannot cache the check.
5. Since all output is done via the C standard library, it is its
responsibility to handle this, however it does not. We do not have control over
the MS standard C library, which does not implement this check.

I think this is unactionable unless either we move away from using C for
input/output (see: std.io), or someone presents a C example program that
produces correct Unicode output to both console and file and which works with
all C runtimes that D uses (AFAIU, this is impossible).

> If this is not going to be fixed, it should be documented.

The problem is with Windows and the C libraries, not D.

--


[Issue 4591] Concat of std.typecons.Tuples

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4591

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp

--


[Issue 4555] Double newlines with std.file.readText

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4555

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 1660] DFLAGS environment variables is not working

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1660

Walter Bright  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |WONTFIX

--- Comment #5 from Walter Bright  ---
Other programs set and use environment variables. We have no control over that
whatsoever. We have little choice but have dmd.conf override such settings.

--


[Issue 4502] make dmd compilable with MinGW

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4502

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--


[Issue 2573] [Tracker] Data integrity issues

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2573
Issue 2573 depends on issue 1161, which changed state.

Issue 1161 Summary: [module] Access to private static members is allowed from 
other module.
https://issues.dlang.org/show_bug.cgi?id=1161

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WONTFIX

--


[Issue 4587] Assert exception should not allocate

2016-10-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4587

Andrei Alexandrescu  changed:

   What|Removed |Added

   Keywords||bootcamp
 CC||and...@erdani.com

--