[Issue 15180] [REG2.069.0-b1] Segfault with empty struct used as UDA

2015-10-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15180

--- Comment #5 from Jacob Carlborg  ---
https://github.com/D-Programming-Language/dmd/pull/5181

--


[Issue 9800] Numerous issues with DWARF debug output

2015-10-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9800

--- Comment #12 from Iain Buclaw  ---
(In reply to Iain Buclaw from comment #2)
> 
> 7. DW_TAG_module is only valid for Fortran/Modula-2, but I'd argue that this
> is a bug.  It would be nice to represent statics as being part of a module,
> my hope would be that adding support would mean that we'd no longer have to
> use 'quotations' or the full mangled name to get/set global decls in the
> debugger.  Though it is worth noting that DWARF2 does not have DW_TAG_module.
> 
> 

The next version of GDB (7.11, unless they do some bikeshedding of their
versioning system) will include explicit support for this in D programs.  And
will also be able to discover if a bare named symbol is from an imported
module, and even handles renamed module + symbol imports.

However it still requires that DMD be able to emit debug code for this though.

--


[Issue 9800] Numerous issues with DWARF debug output

2015-10-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9800

--- Comment #13 from Iain Buclaw  ---
(In reply to Iain Buclaw from comment #1)
> I'll post this in a few parts for ease of taking in, starting with the TL;DR.
> 
> It is evident that dmd needs some loving on it's side, but I'll weigh in my
> thoughts on behalf of gdc's implementation here:
> 
> From what you have raised, this is the current state of play (in gdc)
> 
> Fixed Bugs: #1 (with limitation to integral types), #9
> Identified Bugs: #7, #8, #10

These three identified bugs have been fixed in gdc+gdb.

--


[Issue 15181] SYSCONFDIR is broken

2015-10-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15181

github-bugzi...@puremagic.com changed:

   What|Removed |Added

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

--


[Issue 15181] SYSCONFDIR is broken

2015-10-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15181

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/d9ba17e95c7ed1aca32f0ee6a1360684ca42f16c
fix Issue 15181 - SYSCONFDIR is broken

https://github.com/D-Programming-Language/dmd/commit/5df7520d7ebc009ff9cc914533bd27424b8b3e9f
Merge pull request #5179 from John-Colvin/patch-3

fix Issue 15181 - SYSCONFDIR is broken

--


[Issue 15177] [REG2.069.0-b1] mixin + traits issue with 2.069 beta 1

2015-10-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15177

github-bugzi...@puremagic.com changed:

   What|Removed |Added

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

--


[Issue 15177] [REG2.069.0-b1] mixin + traits issue with 2.069 beta 1

2015-10-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15177

--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/f26ae0052ec82c61d63247096c78503caab8ce9d
fix Issue 15177 - mixin + traits issue with 2.069 beta 1

https://github.com/D-Programming-Language/dmd/commit/d752f698caaaec89a52630e3255d576bb03cd9f9
Merge pull request #5172 from 9rnsr/fix15177

[REG2.069.0-b1] Issue 15177 - mixin + traits issue with 2.069 beta 1

--


[Issue 15177] [REG2.069.0-b1] mixin + traits issue with 2.069 beta 1

2015-10-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15177

--- Comment #3 from Martin Nowak  ---
This was about __traits(allMembers, mymod) listing generated
TypeInfoStructDeclaration members.

--


[Issue 12624] Internal error: backend\cgobj.c 2313 with Rebindable!(immutable TimeZone) in std.datetime

2015-10-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12624

--- Comment #2 from Jonathan M Davis  ---
Well, this is a finicky one. I'd tried to reduce the failing code to something
more manageable in the past and failed, but I thought that I'd take another
stab at it, and simply copying the entire std.datetime module to a module
separate from Phobos (and changing the module declaration of course) and then
doing

Rebindable!(immutable TimeZone) _timezone = UTC();

works instead of failing like it does when that line is changed inside of
Phobos.

It wouldn't surprise me if this problem simply went away when I finally split
of std.datetime (which I think that I'm going to take another stab at getting
done shortly) simply due to how specific the failure is - which just means that
the compiler bug would then be hidden away again rather than anything truly
having been fixed (which certainly isn't good), but if it went away like that,
at least it wouldn't be blocking improvements to SysTime anymore.

--


[Issue 15166] [REG2.069-devel] spurious statement not reachable warning in static foreach loop

2015-10-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15166

--- Comment #2 from Martin Nowak  ---
This is as annoying as go's stupid "unused variable" warning, at least during
development.

> I'm not sure how we can "fix" this and issue 14835.

I guess the fix would be to mark those returns as dependent on the template
types and not account for them when computing not reachable statements, but
that sounds like quite a difficult change.
I guess we might fix this in vibe.d but it might break a lot more code.

--


[Issue 12624] Internal error: backend\cgobj.c 2313 with Rebindable!(immutable TimeZone) in std.datetime

2015-10-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12624

Rainer Schuetze  changed:

   What|Removed |Added

 CC||r.sagita...@gmx.de

--- Comment #3 from Rainer Schuetze  ---
I've used this bug to test the DustMite integration of Visual D, the result
was:

// datetime.d
struct SysTime
{
import typecons;

Rebindable!(immutable TimeZone) _timezone = UTC();
}


class TimeZone
{
this(string , string , string ) immutable {}
}


class UTC : TimeZone
{
static immutable(UTC) opCall()
{
return _utc;
}

this() immutable {
super("UTC", "UTC", "UTC");
}

static _utc = new immutable(UTC);
}


// typecons.d
template RebindableCommon(T, U, This)
{
union { U stripped; }

void opAssign(T another) 
{
stripped = cast() another;
}

this(T initializer)
{
opAssign(initializer);
}
}


template Rebindable(T)
{
static if (is(T == immutable U, U))
struct Rebindable
{
mixin RebindableCommon!(T, U, Rebindable);
}
}



compile with "dmd -lib datetime.d typecons.d" on git HEAD:
Internal error: backend\cgobj.c 2332

Compiling with "-c" instead of "-lib" does not raise the ICE.

--