[Issue 10723] std.stdio.File.byLine causes segfault when compiling with -O

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 15 12:27:19 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10723



--- Comment #6 from hsteoh at quickfur.ath.cx 2013-08-15 12:27:18 PDT ---
(In reply to comment #4)
> (In reply to comment #3)
> 
> > Interesting is that if _name member or in char[] stdioOpenmode = "rb" are
> > removed, the program runs fine.
> 
> This is actually a funny bug - in char[] stdioOpenmode = "rb" shouldn't compile
> in first place, this is accept-invalid. This erroneous default parameter as a
> result causes further problems with dehtables as offsets are wrong.
> 
> https://github.com/D-Programming-Language/phobos/pull/1478

Why is this invalid? I thought 'in char[]' just means const(char[]), which
immutable(char)[] should be implicitly convertible to.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list