[Issue 9466] Compiler crash with code-coverage generation with large files

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9466


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME


--- Comment #8 from Walter Bright bugzi...@digitalmars.com 2013-10-01 
23:21:13 PDT ---
Can't duplicate any problem with 2.064 head, although it does fail with 2.063.

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


[Issue 9353] Memory corruption with mixin-generated code and -cov switch

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9353


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||WORKSFORME


--- Comment #2 from Walter Bright bugzi...@digitalmars.com 2013-10-01 
23:27:42 PDT ---
Works fine for dmd 2.064 head.

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


[Issue 10090] Segfault cannot get frame pointer to function

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10090


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||WORKSFORME


--- Comment #4 from Walter Bright bugzi...@digitalmars.com 2013-10-01 
23:31:46 PDT ---
Both examples work without error for dmd 2.064 head.

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


[Issue 9262] compilation of erroneous source files causes segfault in Package

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9262


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||WORKSFORME


--- Comment #3 from Walter Bright bugzi...@digitalmars.com 2013-10-01 
23:38:53 PDT ---
When I compile it, I get:

gamestate.d(4): Error: class gamestate.GameState is nested within gamestate,
but super class State is nested within FSM

but no seg fault.

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


[Issue 8861] ICE(cgcs.c) 343

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8861


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||WORKSFORME


--- Comment #4 from Walter Bright bugzi...@digitalmars.com 2013-10-01 
23:41:17 PDT ---
I cannot reproduce this with dmd 2.063 or later.

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


[Issue 10981] Contracts in pure class methods are useless

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10981


Kenji Hara k.hara...@gmail.com changed:

   What|Removed |Added

   Keywords||pull, rejects-valid


--- Comment #3 from Kenji Hara k.hara...@gmail.com 2013-10-02 00:15:01 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2615

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


[Issue 10217] (D1 only) ICE(root.c) with nested struct.init.tupleof in CTFE

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10217


Kenji Hara k.hara...@gmail.com changed:

   What|Removed |Added

Version|D1  D2 |D1
Summary|ICE(root.c) with nested |(D1 only) ICE(root.c) with
   |struct.init.tupleof in CTFE |nested struct.init.tupleof
   ||in CTFE


--- Comment #4 from Kenji Hara k.hara...@gmail.com 2013-10-02 01:16:46 PDT ---
Changed to D1 issue.

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


[Issue 10082] ICE(e2ir.c) Multiple mixin template instantiations are not checked

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10082


Kenji Hara k.hara...@gmail.com changed:

   What|Removed |Added

   Keywords||pull
Version|unspecified |D2


--- Comment #1 from Kenji Hara k.hara...@gmail.com 2013-10-02 01:34:37 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2616

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


[Issue 5700] Allow dup in nothrow functions

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5700


Denis Shelomovskij verylonglogin@gmail.com changed:

   What|Removed |Added

 CC||verylonglogin@gmail.com
   Platform|x86 |All
 OS/Version|Windows |All


--- Comment #6 from Denis Shelomovskij verylonglogin@gmail.com 2013-10-02 
15:34:27 MSD ---
Inability to `dup`/`idup` in `nothrow` functions is very frustrating. I'd say
this is the most [one of few] PITA of `nothrow` issues for now.

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


[Issue 9220] module constructor breaks implicit linking with DLL

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9220



--- Comment #5 from Martin Nowak c...@dawg.eu 2013-10-02 04:38:40 PDT ---
The problem is that module constructors are used as ordering constraints for
initialization.

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


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

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6019



--- Comment #9 from Martin Nowak c...@dawg.eu 2013-10-02 04:42:10 PDT ---
*** Issue 9220 has been marked as a duplicate of this issue. ***

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


[Issue 9220] module constructor breaks implicit linking with DLL

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9220


Martin Nowak c...@dawg.eu changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE


--- Comment #6 from Martin Nowak c...@dawg.eu 2013-10-02 04:42:10 PDT ---
*** This issue has been marked as a duplicate of issue 6019 ***

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


[Issue 10092] Renaming std.range.chunks as std.range.chunked

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10092


bearophile_h...@eml.cc changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #1 from bearophile_h...@eml.cc 2013-10-02 04:58:14 PDT ---
Closed issue. This has solved the problem in a better way:
https://github.com/D-Programming-Language/phobos/compare/d744bec6d450...6924d3e6db54

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


[Issue 9466] Compiler crash with code-coverage generation with large files

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9466


Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|WORKSFORME  |


--- Comment #9 from Andrej Mitrovic andrej.mitrov...@gmail.com 2013-10-02 
05:54:36 PDT ---
(In reply to comment #8)
 Can't duplicate any problem with 2.064 head, although it does fail with 2.063.

I can reproduce it with git-head. Have you made sure to compile with:

dmd.exe -cov -c cb.d -J.

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


[Issue 11153] Regression (2.064 git-head): ICE during a diagnostic for missing return type

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11153


Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Issue 11153] Regression (2.064 git-head): ICE during a diagnostic for missing return type

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11153



--- Comment #2 from github-bugzi...@puremagic.com 2013-10-02 05:56:13 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/56198c2fededb1e35c96366cb2a0439bb7d7c307
fix Issue 11153 - ICE during a diagnostic for missing return type

https://github.com/D-Programming-Language/dmd/commit/cff3d4f1f49e8e91c6a9aaf0c35fbd521a845ba1
Merge pull request #2610 from 9rnsr/fix11153

[REG2.064a] Issue 11153 - ICE during a diagnostic for missing return type

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


[Issue 9466] Compiler crash with code-coverage generation with large files

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9466



--- Comment #10 from kekeni...@yahoo.co.jp 2013-10-02 07:29:35 PDT ---
I made a DMD.exe of 2.063.2 by the _tuned_ DMC. (Memory allocation improvement
ver.) 
It does _not_ reproduce the bug ... why?

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


[Issue 9466] Compiler crash with code-coverage generation with large files

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9466



--- Comment #11 from Andrej Mitrovic andrej.mitrov...@gmail.com 2013-10-02 
08:03:03 PDT ---
(In reply to comment #10)
 I made a DMD.exe of 2.063.2 by the _tuned_ DMC. (Memory allocation improvement
 ver.) 
 It does _not_ reproduce the bug ... why?

Which tuned DMC?

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


[Issue 9466] Compiler crash with code-coverage generation with large files

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9466



--- Comment #12 from kekeni...@yahoo.co.jp 2013-10-02 08:19:52 PDT ---
(In reply to comment #11)
 (In reply to comment #10)
  I made a DMD.exe of 2.063.2 by the _tuned_ DMC. (Memory allocation 
  improvement
  ver.) 
  It does _not_ reproduce the bug ... why?
 
 Which tuned DMC?

I mean DMC 8.57 and new snn.lib, which came in August.

DMC 8.57
http://forum.dlang.org/thread/ktenl9$1e68$1...@digitalmars.com
snn.lib
http://forum.dlang.org/thread/ktju8h$efb$1...@digitalmars.com

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


[Issue 4018] __FILE__ and __LINE__ as default template parameters not set to instantiation point per spec

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4018


Kenji Hara k.hara...@gmail.com changed:

   What|Removed |Added

   Keywords||pull
   Platform|Other   |All
Version|2.041   |D2


--- Comment #5 from Kenji Hara k.hara...@gmail.com 2013-10-02 08:16:14 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2617

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


[Issue 9466] Compiler crash with code-coverage generation with large files

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9466



--- Comment #13 from Andrej Mitrovic andrej.mitrov...@gmail.com 2013-10-02 
08:27:19 PDT ---
(In reply to comment #12)
 (In reply to comment #11)
  (In reply to comment #10)
   I made a DMD.exe of 2.063.2 by the _tuned_ DMC. (Memory allocation 
   improvement
   ver.) 
   It does _not_ reproduce the bug ... why?
  
  Which tuned DMC?
 
 I mean DMC 8.57 and new snn.lib, which came in August.
 
 DMC 8.57
 http://forum.dlang.org/thread/ktenl9$1e68$1...@digitalmars.com
 snn.lib
 http://forum.dlang.org/thread/ktju8h$efb$1...@digitalmars.com

I still get a crash with these when using with both 2.063.2 and 2.064.

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


[Issue 11132] Odd diagnostic with C-style struct initializer when union field is present

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11132


Kenji Hara k.hara...@gmail.com changed:

   What|Removed |Added

   Keywords||pull


--- Comment #2 from Kenji Hara k.hara...@gmail.com 2013-10-02 08:46:14 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2605

After merging the PR, compier will report more better message for the OP code:
test.d(22): Error: overlapping initialization for field a and b

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


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

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6019



--- Comment #11 from Martin Nowak c...@dawg.eu 2013-10-02 08:51:30 PDT ---
(In reply to comment #10)
 How about this? Using weak undefined symbols to link against the imported
 ModuleInfo would result in null pointers during runtime.

That could cause some issues with the weird multilibs. Not sure currently if
every archive member references it's module's ModuleInfo.

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


[Issue 10357] std.typecons.Nullable!(SysTime).Nullable.__ctor!() error instantiating

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10357


Kenji Hara k.hara...@gmail.com changed:

   What|Removed |Added

   Keywords||pull, rejects-valid


--- Comment #2 from Kenji Hara k.hara...@gmail.com 2013-10-02 08:55:10 PDT ---
https://github.com/D-Programming-Language/phobos/pull/1612

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


[Issue 10074] segfault in dmd

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10074


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Issue 10082] ICE(e2ir.c) Multiple mixin template instantiations are not checked

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10082


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||FIXED


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


[Issue 11158] New: __MODULE__ as default template parameter doesn't use the instantiating module

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11158

   Summary: __MODULE__ as default template parameter doesn't use
the instantiating module
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: c...@dawg.eu


--- Comment #0 from Martin Nowak c...@dawg.eu 2013-10-02 11:09:36 PDT ---
cat  buga.d  CODE
struct Uniq(string name, string mod=__MODULE__)
{
  pragma(msg, name, mod);

  string toString() { return mod~.~name; }
}
CODE

cat  bug.d  CODE
import buga;

alias UniqFoo = Uniq!(foo);
CODE

dmd -c bug;



As with __FILE__ or __LINE__ they should be used from the instantiating module.
This allows to generically implement somewhat unique types and is useful for
printing additional information.

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


[Issue 6186] Struct destructor is not called on out parameter

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6186


hst...@quickfur.ath.cx changed:

   What|Removed |Added

 CC||hst...@quickfur.ath.cx


--- Comment #5 from hst...@quickfur.ath.cx 2013-10-02 11:27:20 PDT ---
Wow. This is a nasty one. I agree that out parameters should be destructed if
they're already initialized.

Isn't it good enough for the compiler to just issue the equivalent of `x =
typeof(x).init` at the beginning of the function when x is an out parameter?
AFAIK, if you were to actually write this out in code it'd call the dtor before
making the assignment (right?). At least, that's what I *thought* the compiler
did based on what TDPL describes.

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


[Issue 11152] formatChar doesn't handle `\0`

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11152



--- Comment #1 from github-bugzi...@puremagic.com 2013-10-02 13:39:55 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/2db9413d9693925e463d3ba8591425a79b1456ef
Fix Issue 11152 - formatChar doesn't handle `\0`

https://github.com/D-Programming-Language/phobos/commit/29c9b56860530d9685d24af68e633880d4e2
Merge pull request #1611 from monarchdodra/11152

Fix Issue 11152 - formatChar doesn't handle `\0`

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


[Issue 7436] ICE(cg87.c) ubyte = ubyte op= float

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7436


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com


--- Comment #1 from Walter Bright bugzi...@digitalmars.com 2013-10-02 
14:43:53 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2618

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


[Issue 11152] formatChar doesn't handle `\0`

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11152


David Nadlinger c...@klickverbot.at changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||c...@klickverbot.at
 Resolution||FIXED


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


[Issue 7474] ICE(cgcs.c) on instantiating a struct with field and destructor as tuple

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7474


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com


--- Comment #2 from Walter Bright bugzi...@digitalmars.com 2013-10-02 
15:55:59 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2619

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


[Issue 11159] [CTFE] Integer exponentiation give incorrect values

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11159



--- Comment #1 from safety0ff.b...@gmail.com 2013-10-02 16:32:46 PDT ---
Created an attachment (id=1255)
Proposed fix

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


[Issue 11159] New: [CTFE] Integer exponentiation give incorrect values

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11159

   Summary: [CTFE] Integer exponentiation give incorrect values
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Keywords: CTFE, patch
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: safety0ff.b...@gmail.com


--- Comment #0 from safety0ff.b...@gmail.com 2013-10-02 16:31:54 PDT ---
Example program:

import std.stdio;
void main() {
writeln( Runtime );
ulong ten = 10, two = 2;
writeln(two^^63);// ok
writeln(two^^64);// overflows - 2^64 % 2^64
writeln(ten^^18);// ok
writeln(ten^^19);// ok
writeln(ten^^20);// overflows - 10^20 % 2^64

writeln( CTFE );
enum ulong eten = 10, etwo = 2;
writeln(etwo^^63);// ok
writeln(etwo^^64);// expect an overflow, gives 2^63
writeln(eten^^18);// ok
writeln(eten^^19);// should work, gives 2^63 instead (2^63  10^19)
writeln(eten^^20);// expect an overflow, gives 2^63
}

See attached patch for proposed fix.

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


[Issue 11160] Bitfield compilation error with degenerate bitfields of length 32 64

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11160



--- Comment #1 from safety0ff.b...@gmail.com 2013-10-02 16:44:12 PDT ---
Created an attachment (id=1256)
Proposed fix

Note: I could not use integer exponentiation with overflow due to #11159, so I
used ~0 with shifts.

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


[Issue 11160] New: Bitfield compilation error with degenerate bitfields of length 32 64

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11160

   Summary: Bitfield compilation error with degenerate bitfields
of length 32  64
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Keywords: patch
  Severity: normal
  Priority: P2
 Component: Phobos
AssignedTo: nob...@puremagic.com
ReportedBy: safety0ff.b...@gmail.com


--- Comment #0 from safety0ff.b...@gmail.com 2013-10-02 16:42:58 PDT ---
According to the documentation the only constraint on bitfields is:
The sum of all bit lengths in one bitfield instantiation must be exactly 8,
16, 32, or 64.

The current implementation support degenerate bitfields with field lengths 8
and 16.
For example:
mixin(bitfields!(uint, x, 8, int, y, 8));
mixin(bitfields!(uint, x, 8, int, y, 8, int, z, 16));

But not with 32 and 64 as length.

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


[Issue 10687] Refused cast from uint[] to array of uint-based enums at compile-time

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10687


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED


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


[Issue 10687] Refused cast from uint[] to array of uint-based enums at compile-time

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10687



--- Comment #9 from github-bugzi...@puremagic.com 2013-10-02 17:06:58 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/4fba50787271a39fa560ce973a1eb0423d455cb5
fix Issue 10687 - Refused cast from uint[] to array of uint-based enums at
compile-time

https://github.com/D-Programming-Language/dmd/commit/cd8323733777ca8725c20892683cafb128b69283
Merge pull request #2612 from 9rnsr/fix10687

[REG2.064a] Issue 10687 - Refused cast from uint[] to array of uint-based enums
at compile-time

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


[Issue 11158] __MODULE__ as default template parameter doesn't use the instantiating module

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11158


Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||andrej.mitrov...@gmail.com
 Resolution||DUPLICATE


--- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com 2013-10-02 
19:07:11 PDT ---
See https://github.com/D-Programming-Language/dmd/pull/2617

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

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


[Issue 4018] __FILE__ and __LINE__ as default template parameters not set to instantiation point per spec

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4018



--- Comment #6 from Andrej Mitrovic andrej.mitrov...@gmail.com 2013-10-02 
19:07:11 PDT ---
*** Issue 11158 has been marked as a duplicate of this issue. ***

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


[Issue 11160] Bitfield compilation error with degenerate bitfields of length 32 64

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11160


Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

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


--- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com 2013-10-02 
19:06:06 PDT ---
Dupe of Issue 8474?

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


[Issue 11160] Bitfield compilation error with degenerate bitfields of length 32 64

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11160



--- Comment #3 from safety0ff.b...@gmail.com 2013-10-02 20:00:53 PDT ---
(In reply to comment #2)
 Dupe of Issue 8474?

This issue is a dupe of 8474, but the code in 8474 includes all kinds of
enhancements squashed into a non-atomic commit.
The author never created a pull request despite referring to one in the 4
issues mentioned below.

In this case, which one should be marked duplicate?

Looking at bunch of linked bitmanip bugs referenced in the commit message for
the code in issue 8474:

Issue 6686 is a dupe of issue 5942, but both should be resolved as worksforme
with current std.bitmanip.

Issue 4935 also worksforme.

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


[Issue 11160] Bitfield compilation error with degenerate bitfields of length 32 64

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11160



--- Comment #4 from safety0ff.b...@gmail.com 2013-10-02 20:29:48 PDT ---
(In reply to comment #3)
 The author never created a pull request despite referring to one in the 4
 issues mentioned below.
Actually found the pull requests using google (PR 1045, 719, 734,740.)
All closed but don't appear merged.

Anyways, using DPaste 6686/ 5942 were fixed between 2.060 and 2.063.
4935 was fixed prior to 2.060.

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


[Issue 8360] Destruction of uninitialized temporary struct with assert

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8360


Kenji Hara k.hara...@gmail.com changed:

   What|Removed |Added

   Keywords||pull, wrong-code


--- Comment #2 from Kenji Hara k.hara...@gmail.com 2013-10-02 20:46:00 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2620

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


[Issue 8361] [ICE] (eh.c line 316) with struct with dtor in assert

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8361


Kenji Hara k.hara...@gmail.com changed:

   What|Removed |Added

   Keywords||ice, pull


--- Comment #4 from Kenji Hara k.hara...@gmail.com 2013-10-02 20:46:17 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2620

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


[Issue 7524] #line __LINE__ doesn't parse on D2.020 and later

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7524


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com


--- Comment #1 from Walter Bright bugzi...@digitalmars.com 2013-10-02 
22:09:21 PDT ---
D2 fix:

https://github.com/D-Programming-Language/dmd/pull/2621

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


[Issue 11159] [CTFE] Integer exponentiation give incorrect values

2013-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11159



--- Comment #2 from safety0ff.b...@gmail.com 2013-10-02 22:18:12 PDT ---
Patch fixes issue 7548, one issue should be marked duplicate of the other.

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