[Issue 11425] Broken shadowing variable diagnostic

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11425


yebblies  changed:

   What|Removed |Added

   Keywords||pull
 CC||yebbl...@gmail.com


--- Comment #1 from yebblies  2013-11-17 18:34:40 EST ---
https://github.com/D-Programming-Language/dmd/pull/2793

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


[Issue 11532] New: Variadics using the C ABI should not accept D-specific types

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11532

   Summary: Variadics using the C ABI should not accept D-specific
types
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: and...@erdani.com


--- Comment #0 from Andrei Alexandrescu  2013-11-16 23:21:11 
PST ---
The ABI for C variadics (e.g. printf and friends) does not understand D data
types, in particular slices and fixed-size arrays.

We should reject statically any passing of D-specific data through C-style
variadics.

This has been a very nagging issue during a port of a large C codebase.

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


[Issue 1171] Cannot create a static array with the length of a const static array in function scope, D1 only

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=1171


yebblies  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||yebbl...@gmail.com
 Resolution||WONTFIX


--- Comment #3 from yebblies  2013-11-17 18:17:10 EST ---
Closing because D1 is no longer supported.

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


[Issue 3279] (D1 only) Confusing error message when comparing types

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=3279


yebblies  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #5 from yebblies  2013-11-17 18:10:07 EST ---
Closing because D1 is no longer supported.

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


[Issue 3573] pure and nothrow allow function return type to be inferred

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=3573


yebblies  changed:

   What|Removed |Added

 CC||burg.bas...@yahoo.com


--- Comment #2 from yebblies  2013-11-17 18:08:31 EST ---
*** Issue 11491 has been marked as a duplicate of this issue. ***

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


[Issue 11491] @safe prefix allows procedures without return type

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11491


yebblies  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||yebbl...@gmail.com
 Resolution||DUPLICATE


--- Comment #3 from yebblies  2013-11-17 18:08:31 EST ---
*** This issue has been marked as a duplicate of issue 3573 ***

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


[Issue 4715] Bad error message with update for already defined variable

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=4715


yebblies  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||yebbl...@gmail.com
 Resolution||INVALID


--- Comment #1 from yebblies  2013-11-17 18:06:52 EST ---
The second case has a syntax error, and doesn't get through parsing.  There is
no way to get semantic errors if it won't parse.

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


[Issue 5222] label prepending block in 'ThenStatement' breaks creating new scope

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=5222


yebblies  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||yebbl...@gmail.com
 Resolution||WORKSFORME


--- Comment #1 from yebblies  2013-11-17 18:03:14 EST ---
Fixed now, there was a bug with if/mixin that was probably the same root cause.

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


[Issue 5116] spurious 'is used as a type' error after template lookup error

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=5116


yebblies  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||yebbl...@gmail.com
 Resolution||WORKSFORME


--- Comment #2 from yebblies  2013-11-17 18:04:40 EST ---
Appears to be fixed.

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


[Issue 6764] (D1 only) IFTI fails on typesafe variadic function over static array with non IntegerLiteral length

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=6764


yebblies  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #4 from yebblies  2013-11-17 17:56:09 EST ---
Closing because D1 is no longer supported.

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


[Issue 7853] Almost useless error message related to postblit with AA of const struct

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=7853


yebblies  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||yebbl...@gmail.com
 Resolution||WORKSFORME


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


[Issue 8059] Deprecate .classinfo

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8059


yebblies  changed:

   What|Removed |Added

   Keywords||pull
 CC||yebbl...@gmail.com


--- Comment #7 from yebblies  2013-11-17 17:44:49 EST ---
https://github.com/D-Programming-Language/dmd/pull/2792

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


[Issue 8092] Static accepted without declaration

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8092


yebblies  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||yebbl...@gmail.com
 Resolution||WORKSFORME


--- Comment #1 from yebblies  2013-11-17 17:16:06 EST ---
Now prints:
testx.d(6): Error: Declaration expected, not '}'

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


[Issue 9256] A purity-related error message in case of member access

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=9256


yebblies  changed:

   What|Removed |Added

 CC||yebbl...@gmail.com


--- Comment #2 from yebblies  2013-11-17 17:09:46 EST ---
Now gives both:

testx.d(5): Error: pure nested function 'main' cannot access mutable data 'x'
testx.d(5): Error: need 'this' for 'x' of type 'int'

Good enough?

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


[Issue 9562] Built-in runtime properties should become error with `Type.prop`

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=9562


yebblies  changed:

   What|Removed |Added

   Keywords||pull
 Status|RESOLVED|REOPENED
 Resolution|WORKSFORME  |


--- Comment #2 from yebblies  2013-11-17 17:03:32 EST ---
Whoops, forgot to use -o-

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

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


[Issue 5113] (D1 only): stray e2ir: in casting error message

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=5113


yebblies  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||WONTFIX


--- Comment #9 from yebblies  2013-11-17 16:57:54 EST ---
Andrei has been closing them, D1 is dead.

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


[Issue 5113] (D1 only): stray e2ir: in casting error message

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=5113


Denis Shelomovskij  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|DUPLICATE   |
Summary|stray e2ir: in casting  |(D1 only): stray e2ir: in
   |error message   |casting error message


--- Comment #8 from Denis Shelomovskij  2013-11-17 
09:53:45 MSK ---
(In reply to comment #7)
> Duplicate or wontfix, D1 is dead and 7514 is the same issue.
> 
> *** This issue has been marked as a duplicate of issue 7514 ***

Yes but we still have lots of "D1 only" issues. You can propose to WONTFIX them
all but closing only this one is inconsistent.

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


[Issue 9562] Built-in runtime properties should become error with `Type.prop`

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=9562


yebblies  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||yebbl...@gmail.com
 Resolution||WORKSFORME


--- Comment #1 from yebblies  2013-11-17 16:46:05 EST ---
Fails now:
testx.d(9): Error: type int[1] is not an expression
testx.d(10): Error: type int[1] is not an expression
testx.d(11): Error: type int[1] is not an expression
testx.d(12): Error: type int[1] is not an expression
testx.d(9): Error: type char[1] is not an expression
testx.d(10): Error: type char[1] is not an expression
testx.d(11): Error: type char[1] is not an expression
testx.d(12): Error: type char[1] is not an expression
testx.d(8): Error: type int[] is not an expression
testx.d(9): Error: type int[] is not an expression
testx.d(10): Error: type int[] is not an expression
testx.d(11): Error: type int[] is not an expression
testx.d(12): Error: type int[] is not an expression
testx.d(8): Error: type char[] is not an expression
testx.d(9): Error: type char[] is not an expression
testx.d(10): Error: type char[] is not an expression
testx.d(11): Error: type char[] is not an expression
testx.d(12): Error: type char[] is not an expression

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


[Issue 10685] Immutable interval foreach to propagate index value range

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10685


yebblies  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||yebbl...@gmail.com
 Resolution||DUPLICATE


--- Comment #3 from yebblies  2013-11-17 16:43:57 EST ---
Same thing as 9570 / static array index

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

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


[Issue 9620] Error messages of failed pure enforcement

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=9620


yebblies  changed:

   What|Removed |Added

   Keywords||pull
 CC||yebbl...@gmail.com
   Platform|x86 |All
 OS/Version|Windows |All


--- Comment #1 from yebblies  2013-11-17 16:41:25 EST ---
The error messages now match, but still refer to the outer function instead of
the nested one.

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

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


[Issue 9570] Wrong foreach index implicit conversion error

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=9570


yebblies  changed:

   What|Removed |Added

 CC||yebbl...@gmail.com
   Severity|minor   |enhancement


--- Comment #2 from yebblies  2013-11-17 16:44:41 EST ---
Same thing for foreach(immutable i; 0..7) etc

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


[Issue 9570] Wrong foreach index implicit conversion error

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=9570



--- Comment #1 from yebblies  2013-11-17 16:43:57 EST ---
*** Issue 10685 has been marked as a duplicate of this issue. ***

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


[Issue 9690] cannot access to @disable'd symbol from inner function of another @disable'd

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=9690


yebblies  changed:

   What|Removed |Added

 CC||yebbl...@gmail.com
   Severity|minor   |enhancement


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


[Issue 9831] Error message with failed lambda inference

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=9831


yebblies  changed:

   What|Removed |Added

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


--- Comment #1 from yebblies  2013-11-17 16:16:54 EST ---
x => c does not have a type yet, the problem is in inferring the type, not
converting.

I'm tempted to close as invalid, but I'll leave it up to you.

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


[Issue 9861] Spurious 'is used as type' error with failed template instantiation

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=9861


yebblies  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||yebbl...@gmail.com
 Resolution||WORKSFORME


--- Comment #1 from yebblies  2013-11-17 16:13:26 EST ---
Seems to have been fixed at some point.

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


[Issue 3013] Duplicate error message on calling a function with a type

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=3013


yebblies  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED


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


[Issue 10546] UFCS hides actual static assert failure in opDispatch

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10546


yebblies  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||yebbl...@gmail.com
 Resolution||DUPLICATE


--- Comment #1 from yebblies  2013-11-17 16:06:38 EST ---
*** This issue has been marked as a duplicate of issue 8387 ***

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


[Issue 8387] Semantic errors in opDispatch body are not reported

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8387


yebblies  changed:

   What|Removed |Added

 CC||turkey...@gmail.com


--- Comment #4 from yebblies  2013-11-17 16:08:52 EST ---
*** Issue 8097 has been marked as a duplicate of this issue. ***

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


[Issue 8097] opDispatch produces confusing error message when rejected by a template constraint

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8097


yebblies  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||yebbl...@gmail.com
 Resolution||DUPLICATE


--- Comment #2 from yebblies  2013-11-17 16:08:52 EST ---
*** This issue has been marked as a duplicate of issue 8387 ***

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


[Issue 3013] Duplicate error message on calling a function with a type

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=3013



--- Comment #8 from github-bugzi...@puremagic.com 2013-11-16 21:09:12 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/7e59edf65460423ea93d1c1ee04928f26e1b82b8
Fix Issue 3013 - Duplicate error message on calling a function with a type

https://github.com/D-Programming-Language/dmd/commit/4f4901d782e8d3dc6ccce151e013d953b3b21963
Merge pull request #2786 from yebblies/issue3013

Issue 3013 - Duplicate error message on calling a function with a type

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


[Issue 10760] compiler drops opDispatch if it contains an error(s)

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10760


yebblies  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||yebbl...@gmail.com
 Resolution||DUPLICATE


--- Comment #2 from yebblies  2013-11-17 16:06:40 EST ---
*** This issue has been marked as a duplicate of issue 8387 ***

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


[Issue 8387] Semantic errors in opDispatch body are not reported

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8387


yebblies  changed:

   What|Removed |Added

 CC||temta...@gmail.com


--- Comment #3 from yebblies  2013-11-17 16:06:40 EST ---
*** Issue 10760 has been marked as a duplicate of this issue. ***

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


[Issue 8387] Semantic errors in opDispatch body are not reported

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8387


yebblies  changed:

   What|Removed |Added

 CC||k.hara...@gmail.com


--- Comment #2 from yebblies  2013-11-17 16:06:38 EST ---
*** Issue 10546 has been marked as a duplicate of this issue. ***

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


[Issue 10241] Probably wrong "did you mean" suggestion in error message

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10241


yebblies  changed:

   What|Removed |Added

 CC||yebbl...@gmail.com


--- Comment #1 from yebblies  2013-11-17 16:09:43 EST ---
Issue 9644?

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


[Issue 10805] wrong error message for wrong delimited string

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10805


yebblies  changed:

   What|Removed |Added

   Keywords||pull
 CC||yebbl...@gmail.com


--- Comment #1 from yebblies  2013-11-17 16:04:43 EST ---
https://github.com/D-Programming-Language/dmd/pull/2789

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


[Issue 11263] Better code formatting in error messages with refused lambdas

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11263


yebblies  changed:

   What|Removed |Added

 CC||yebbl...@gmail.com


--- Comment #1 from yebblies  2013-11-17 15:55:55 EST ---
There is _some_ room for improvement, but matching the original formatting is
out of the question.  You don't usually want the original text anyway, you want
the result of semantic.

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


[Issue 11263] Better code formatting in error messages with refused lambdas

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11263


yebblies  changed:

   What|Removed |Added

   Platform|x86 |All
 OS/Version|Windows |All
   Severity|minor   |enhancement


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


[Issue 7514] [e2ir] Error in e2ir at dynamic array to static array cast

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=7514


yebblies  changed:

   What|Removed |Added

 Depends on||11484


--- Comment #3 from yebblies  2013-11-17 15:37:34 EST ---
I put the fix in the pull in issue 11484

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


[Issue 5113] stray e2ir: in casting error message

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=5113


yebblies  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||yebbl...@gmail.com
 Resolution||DUPLICATE


--- Comment #7 from yebblies  2013-11-17 15:38:06 EST ---
Duplicate or wontfix, D1 is dead and 7514 is the same issue.

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

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


[Issue 7514] [e2ir] Error in e2ir at dynamic array to static array cast

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=7514


yebblies  changed:

   What|Removed |Added

 CC||baseball@gmail.com


--- Comment #4 from yebblies  2013-11-17 15:38:07 EST ---
*** Issue 5113 has been marked as a duplicate of this issue. ***

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


[Issue 11484] [e2ir] Error in e2ir at cast to/from static array

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11484


yebblies  changed:

   What|Removed |Added

   Keywords||accepts-invalid, pull


--- Comment #7 from yebblies  2013-11-17 15:31:04 EST ---
https://github.com/D-Programming-Language/dmd/pull/2788

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


[Issue 11485] [e2ir] Error in e2ir at numeric/bool to class/interface cast

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11485


yebblies  changed:

   What|Removed |Added

   Keywords||accepts-invalid, pull
 CC||yebbl...@gmail.com


--- Comment #3 from yebblies  2013-11-17 15:10:14 EST ---
https://github.com/D-Programming-Language/dmd/pull/2788

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


[Issue 9644] Spell checker gives silly suggestions for 1-2 character symbols

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=9644


yebblies  changed:

   What|Removed |Added

   Keywords||pull
 CC||yebbl...@gmail.com


--- Comment #2 from yebblies  2013-11-17 14:55:43 EST ---
I've implemented the difference limit as min(strlen(id) - 1, 2).

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

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


[Issue 3013] Duplicate error message on calling a function with a type

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=3013


yebblies  changed:

   What|Removed |Added

   Keywords||pull
 CC||yebbl...@gmail.com
   Platform|x86 |All
Version|1.043   |D2
Summary|Weird implicit conversion   |Duplicate error message on
   |error with cryptic mangled  |calling a function with a
   |name - assigning to invalid |type
   |arraytype.function call |
 OS/Version|Windows |All


--- Comment #7 from yebblies  2013-11-17 14:38:36 EST ---
Currently prints:

DMD v2.065 DEBUG
testx.d(4): Error: string is not an expression
testx.d(4): Error: string is not an expression
testx.d(4): Error: cannot pass type string as function argument

Which is pretty accurate except for the duplicate errors.

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

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


[Issue 11508] [REG 2.064] Wrong code with -O on x86_64 for char comparisons

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11508



--- Comment #6 from yebblies  2013-11-17 12:53:56 EST ---
(In reply to comment #4)
> Looks fixed in master now. yebblies, you can go ahead and claim Facebook's bug
> bounty over at
> https://www.bountysource.com/issues/1325896-reg-2-064-wrong-code-with-o-on-x86_64-for-char-comparisons
> for this fix!

$$$

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


[Issue 11112] Unable to execute shell commands in different threads

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=2


Martin Nowak  changed:

   What|Removed |Added

   Keywords||pull
 CC||c...@dawg.eu


--- Comment #3 from Martin Nowak  2013-11-16 17:33:36 PST ---
https://github.com/D-Programming-Language/phobos/pull/1696

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


[Issue 1832] reading/writing an archive causes data loss; std.zip horribly broken

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=1832


Andrei Alexandrescu  changed:

   What|Removed |Added

 CC||and...@erdani.com


--- Comment #3 from Andrei Alexandrescu  2013-11-16 16:58:10 
PST ---
Please redo your patch as a pull request at
https://github.com/D-Programming-Language/. Thanks!

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


[Issue 1832] reading/writing an archive causes data loss; std.zip horribly broken

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=1832



--- Comment #2 from Andrea Fontana  2013-11-16 15:54:04 
PST ---
Created an attachment (id=1290)
My patch as explained in bug's comment

See previous comment

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


[Issue 10508] qsort_r is not present on older Linux systems

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10508



--- Comment #2 from Artem Tarasov  2013-11-16 14:41:34 
PST ---
Some people still run CentOS 5.

-- 
Configure issuemail: https://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-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=9466



--- Comment #17 from Walter Bright  2013-11-16 
14:33:32 PST ---
https://github.com/D-Programming-Language/dmd/pull/2785

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


[Issue 11520] [bionic] qsort is missing on linux/bionic

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11520



--- Comment #1 from Martin Nowak  2013-11-16 14:01:25 PST ---
An existing (though copyrighted) implementation was removed with
https://github.com/D-Programming-Language/druntime/commit/45f1755cf13a1a376cc1572b5a9327d95fc0db75.
Also the used qsort_r isn't present in older glibc versions (see bug 10508).

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


[Issue 10508] qsort_r is not present on older Linux systems

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10508


Martin Nowak  changed:

   What|Removed |Added

 CC||c...@dawg.eu


--- Comment #1 from Martin Nowak  2013-11-16 13:59:31 PST ---
GLIBC 2.8 is almost 5 years old. Why do you need to use such an old libc?

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


[Issue 11531] New: For a faster std.algorithm.group on strings

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11531

   Summary: For a faster std.algorithm.group on strings
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: Phobos
AssignedTo: nob...@puremagic.com
ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2013-11-16 13:28:06 PST ---
This is a low-priority enhancement request.

>From my tests I've seen you can speed up std.algorithm.group applied on strings
more than twice if you instead apply it on a immutable(ubyte)[] using
std.string.representation.

Dmitry Olshansky has suggested some ideas that can improve the performance of
std.algorithm.group applied on strings:

As to group it has to find runs of identical items. It can be speed up for
Unicode if you take into account 2 simple tricks:
- you don't need to decode - just identify the size of current dchar (stride)
and see how many repetitions of such follow it;
- special case if the current (w)char ASCII (or BMP for UTF-16) so as to speed
up counting (1 char vs variable length slice of 1-4 chars, ditto with wchar).

-- 
Configure issuemail: https://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-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=9466


Walter Bright  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|WORKSFORME  |


--- Comment #16 from Walter Bright  2013-11-16 
12:17:36 PST ---
Running under valgrind uncovered the error. Will post fix shortly.

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


[Issue 11447] Closure provide bogus values

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11447



--- Comment #2 from deadalnix  2013-11-16 12:10:06 PST ---
OK, I've been able to spend some time making this report look better.

a.d :
class A {
}

import std.algorithm;
import std.array;
struct TemplateInstancier {
auto instanciateFromResolvedArgs(A a) {
auto bs = [B(a)];

static A gladeulfeurah;
gladeulfeurah = a;
// XXX: have to put array once again to avoid multiple map.
string id = bs.map!(
b => b.apply!(
function string() { assert(0); },
delegate string(i) {
assert(a is gladeulfeurah, "tagazok");
return "";
}
)
).join;
}
}

enum Tag {
Undefined,
A,
}

struct B {
A a;
Tag tag;

this(A a) {
tag = Tag.A;
this.a = a;
}
}

auto apply(alias undefinedHandler, alias handler)(B b) {
final switch(b.tag) with(Tag) {
case Undefined :
return undefinedHandler();

case A :
return handler(b.a);
}
}

fail.d:
import a;

void main() {
auto a = new A();
TemplateInstancier().instanciateFromResolvedArgs(a);
}

Compile via:
dmd -c -offail.o fail.d -m64 -w -debug -gc
dmd -c -ofa.o a.d -m64 -w -debug -gc
gcc -o fail fail.o a.o -m64 -lphobos2 -export-dynamic -ldl

Run via:
./fail

The program assert fail with the message tagazok. The value of the variable a
in the closure is incorrect.

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


[Issue 11529] Unclear error message when rvalue is passed as `ref'

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11529


Andrej Mitrovic  changed:

   What|Removed |Added

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


--- Comment #1 from Andrej Mitrovic  2013-11-16 
12:08:41 PST ---
2.062:
test.d(6): Error: function test.f (ref S s) is not callable using argument
types (S)
test.d(6): Error: S() is not an lvalue

2.063:
test.d(6): Error: function test.f (ref S s) is not callable using argument
types (S)

Caused by https://github.com/D-Programming-Language/dmd/pull/1842 which I
objected to.

-- 
Configure issuemail: https://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-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=9466


Andrej Mitrovic  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||WORKSFORME


--- Comment #15 from Andrej Mitrovic  2013-11-16 
11:35:50 PST ---
(In reply to comment #14)
> Cannot reproduce with 2.064 or 2.065 head.

Looks like it's gone with the release version on 2.064.

Reopen if you run into it again.

-- 
Configure issuemail: https://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-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=9466



--- Comment #14 from Walter Bright  2013-11-16 
11:32:34 PST ---
Cannot reproduce with 2.064 or 2.065 head.

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


[Issue 11508] [REG 2.064] Wrong code with -O on x86_64 for char comparisons

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11508



--- Comment #5 from github-bugzi...@puremagic.com 2013-11-16 11:16:53 PST ---
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/e3f5bb6040e4889932d3a1f06b0cd812e91790f1
Merge pull request #2776 from yebblies/issue11508

Issue 11508 - [REG 2.064] Wrong code with -O on x86_64 for char comparisons

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


[Issue 6010] -fPIC is broken on freebsd/64

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=6010



--- Comment #4 from Brad Roberts  2013-11-16 10:43:57 PST 
---
I'm curious what was broken and when it was fixed.  It definitely was
thoroughly broken back when initially adding freebsd 32 and 64 to the test
fleet.  Not worth the time to bisect though.

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


[Issue 6010] -fPIC is broken on freebsd/64

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=6010


Brad Roberts  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Issue 11530] New: need gdb dwarf test suite

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11530

   Summary: need gdb dwarf test suite
   Product: D
   Version: unspecified
  Platform: All
OS/Version: All
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: c...@dawg.eu


--- Comment #0 from Martin Nowak  2013-11-16 10:36:39 PST ---
I'm about to overhaul dmd's DWARF information and will try to fix the
outstanding issues. It seems (subjective) that the current state is worse than
a year ago.
So in any case we'll need a test suite to avoid regressions.
In the best case we find/write a tool that verifies correct debug information.
Otherwise we could try to automate gdb sessions but this is probably a very
slow test.

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


[Issue 11508] [REG 2.064] Wrong code with -O on x86_64 for char comparisons

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11508


tchaje...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #4 from tchaje...@gmail.com 2013-11-16 10:36:47 PST ---
Looks fixed in master now. yebblies, you can go ahead and claim Facebook's bug
bounty over at
https://www.bountysource.com/issues/1325896-reg-2-064-wrong-code-with-o-on-x86_64-for-char-comparisons
for this fix!

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


[Issue 6010] -fPIC is broken on freebsd/64

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=6010



--- Comment #3 from github-bugzi...@puremagic.com 2013-11-16 10:26:13 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/5085acbadba20b0c2d0f94ba6822853200030109
close Issue 6010 - fPIC is broken on FreeBSD/64

- The ABI doesn't differ from linux so reenable the tests.

https://github.com/D-Programming-Language/dmd/commit/46c194b696d8ca9604e97c61a41a19a3787d5df5
Merge pull request #2781 from dawgfoto/fix6010

close Issue 6010 - fPIC is broken on FreeBSD/64

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


[Issue 11508] [REG 2.064] Wrong code with -O on x86_64 for char comparisons

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11508



--- Comment #3 from github-bugzi...@puremagic.com 2013-11-16 10:28:05 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/f0e66ee8779936795fdb799a203b181371b38f7f
Issue 11508 - [REG 2.064] Wrong code with -O on x86_64 for char comparisons

https://github.com/D-Programming-Language/dmd/commit/51125bbed57caad4d326419470be07790915de5a
Merge pull request #2776 from yebblies/issue11508

Issue 11508 - [REG 2.064] Wrong code with -O on x86_64 for char comparisons

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


[Issue 11529] New: Unclear error message when rvalue is passed `ref`

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11529

   Summary: Unclear error message when rvalue is passed `ref`
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: rscr...@gmail.com


--- Comment #0 from Roy Crihfield  2013-11-16 10:17:52 PST 
---
Compiling this:

  struct S {}
  void f(ref S s) {}

  void main()
  {
f(S());
  }

Gives an error without a clear explanation: 

  Error: function f730.f (ref S s) is not callable using argument types (S)

This should at the very least give an indication that the struct passed is a
temporary. Especially for those unfamiliar with the language, there's no
obvious indication of a type mismatch. 

The same issue applies to `const ref' and `in ref' parameters.

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


[Issue 5569] 64 bit Dwarf symbolic debug info not recognized by gdb

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=5569


Martin Nowak  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||c...@dawg.eu
 Resolution||FIXED


--- Comment #4 from Martin Nowak  2013-11-16 10:08:52 PST ---
This should be fixed by now.

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


[Issue 11528] appender: crash with -inline -O

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11528


Rainer Schuetze  changed:

   What|Removed |Added

   Keywords||pull


--- Comment #1 from Rainer Schuetze  2013-11-16 08:39:59 
PST ---
https://github.com/D-Programming-Language/phobos/pull/1695

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


[Issue 11528] New: appender: crash with -inline -O

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11528

   Summary: appender: crash with -inline -O
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: regression
  Priority: P2
 Component: Phobos
AssignedTo: nob...@puremagic.com
ReportedBy: r.sagita...@gmx.de


--- Comment #0 from Rainer Schuetze  2013-11-16 08:29:39 
PST ---
This program is tweaked to cause a crash when building for Win32:

import std.array;

void main()
{
auto arr = appender!string();
asm { mov EBX,-1; }
arr.put("1");
}

>dmd -inline -O -g test.d
>test
object.Error: Integer Divide by Zero

0x004222B6 in _ULDIV
0x00404D2A in stdarrayAppender at m:\s\d\rainers\phobos\std\array.d(2453)
0x004234C0 in memset
0x0040F76E in _d_newitemT
0x00405AC0 in stdarrayAppender at m:\s\d\rainers\phobos\std\array.d(2339)
0x0040E5F8 in rtdmain2_d_run_mainrunAll__lambda1
0x0040E5CB in rtdmain2_d_run_mainrunAll
0x0040E4E1 in _d_run_main
0x0040CD90 in main at M:\s\d\rainers\bugs\rs165\test.d(3)
0x75EC850D in BaseThreadInitThunk
0x77DDBF39 in RtlInitializeExceptionChain
0x77DDBF0C in RtlInitializeExceptionChain

This is caused by the bsr intrinsic having undefined behaviour for 0 (i.e. the
previous value of the destination register is preserved).

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


[Issue 11504] [CTFE] JSONValue cannot make in CTFE

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11504


John Colvin  changed:

   What|Removed |Added

 CC||john.loughran.colvin@gmail.
   ||com


--- Comment #6 from John Colvin  2013-11-16 
12:50:11 GMT ---
(In reply to comment #5)
> (In reply to comment #4)
> > (In reply to comment #2)
> > > The reason why the code mentioned above was OK in the past is a thing by 
> > > the
> > > bugs of the compilers. (SeeAlso: Issue11427
> > 
> > std.json was refactored a while ago and it might be the cause of this
> > regression. But I still don't understand what the problem is with this code
> > *right now*. Can anyone try to explain what SHOO meant in plain English?
> 
> I separately filed the true std.json regression as issue 11527.

I would argue that is not necessarily a bug. See my comments in issue 11527 and
https://github.com/D-Programming-Language/phobos/pull/1693

https://d.puremagic.com/issues/show_bug.cgi?id=11510 is the real problem here,
as you rightly point out.

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


[Issue 10922] Compiler segfaults when using __traits(parent, {})

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10922


yebblies  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Issue 10922] Compiler segfaults when using __traits(parent, {})

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10922



--- Comment #3 from github-bugzi...@puremagic.com 2013-11-16 04:46:22 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/3371989030cedd3d58732fc423e68ce83a33e40c
fix Issue 10922 - Compiler segfaults when using __traits(parent, {})

https://github.com/D-Programming-Language/dmd/commit/a86eb6c5702beff5fe786b0b2c6d5a954be85565
Merge pull request #2779 from 9rnsr/fix10922

Issue 10922 - Compiler segfaults when using __traits(parent, {})

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


[Issue 11527] JSONValue cannot set values through named fields

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11527


John Colvin  changed:

   What|Removed |Added

 CC||john.loughran.colvin@gmail.
   ||com


--- Comment #3 from John Colvin  2013-11-16 
12:43:18 GMT ---
I thought this was by design as part of the new API? One of the goals was to
add type-safety.

auto v = JSONValue(1);

and

JSONValue v;
v.type = JSON_TYPE.INTEGER;
v.integer = 1;

are both valid.

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


[Issue 10084] ICE(toir.c) alias template parameter

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10084


Kenji Hara  changed:

   What|Removed |Added

   Keywords||pull, rejects-valid


--- Comment #4 from Kenji Hara  2013-11-16 04:38:18 PST ---
Make the OP code more readable.

void callFunc(T, alias func)() {
  void call(Member)() {
func!Member();
  }
  call!T;
}
template Mix() {
  void save() {
void saveImpl(Member)() {
}
callFunc!(typeof(this), saveImpl);
  }
}
struct S {
  mixin Mix;
}

With 2.064, the code doesn't occur ICE. Instead following errors printed:

test.d(3): Error: function test.callFunc!(S, saveImpl).callFunc.call!(S).call
cannot access frame of function test.S.Mix!().save
test.d(5): Error: template instance test.callFunc!(S,
saveImpl).callFunc.call!(S) error instantiating
test.d(12):instantiated from here: callFunc!(S, saveImpl)
test.d(12): Error: template instance test.callFunc!(S, saveImpl) error
instantiating

However compiler should accept the code. All of template functions instantiated
in save() -
  callFunc!(S, saveImpl),
  callFunc!(S, saveImpl).call!T == callFunc!(S, saveImpl).call!Member
  callFunc!(S, saveImpl).call!T.func!Member == save.saveImpl!Member
should capture the frame pointer of save() member function.

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

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


[Issue 10922] Compiler segfaults when using __traits(parent, {})

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10922


Kenji Hara  changed:

   What|Removed |Added

   Keywords||pull


--- Comment #2 from Kenji Hara  2013-11-16 03:43:07 PST ---
https://github.com/D-Programming-Language/dmd/pull/2779

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


[Issue 11375] [profile+nothrow] Semantic 'no throw' error with -profile switch

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11375


yebblies  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Issue 11375] [profile+nothrow] Semantic 'no throw' error with -profile switch

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11375



--- Comment #2 from github-bugzi...@puremagic.com 2013-11-16 03:27:25 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/f633cf3796920ff7c3062cc0218e2b2654f8630c
Fix Issue 11375 - [profile+nothrow] Semantic 'no throw' error with -profile
switch

https://github.com/D-Programming-Language/dmd/commit/c5147ac15bc5cca6dbfd53f33505b7f1d06e4098
Merge pull request #2765 from yebblies/issue11375

Issue 11375 - [profile+nothrow] Semantic 'no throw' error with -profile switch

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


[Issue 11525] REG(2.065): Error: 'a[] *= a[]' each element is not a scalar, it is a Complex!double

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11525



--- Comment #3 from yebblies  2013-11-16 22:07:08 EST ---
Yes, but unless the 2.064 behavior was intentional, this is an enhancement and
not a regression.  I remember this being discussed before but I don't know
where.

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


[Issue 11504] [CTFE] JSONValue cannot make in CTFE

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11504


Kenji Hara  changed:

   What|Removed |Added

   Keywords||CTFE
  Component|Phobos  |DMD


--- Comment #5 from Kenji Hara  2013-11-16 02:41:13 PST ---
(In reply to comment #4)
> (In reply to comment #2)
> > The reason why the code mentioned above was OK in the past is a thing by the
> > bugs of the compilers. (SeeAlso: Issue11427
> 
> std.json was refactored a while ago and it might be the cause of this
> regression. But I still don't understand what the problem is with this code
> *right now*. Can anyone try to explain what SHOO meant in plain English?

I separately filed the true std.json regression as issue 11527.
After fixing the bug, the OP case will print following errors.

C:\dmd2\src\phobos\std\json.d(181): Error: Unions with overlapping fields are
not yet supported in CTFE
C:\dmd2\src\phobos\std\json.d(103):called from here: this.assign(v)
test.d(6):called from here: v.integer(1L)
test.d(12):called from here: foo()

The error is caused by issue 11510, and could be fixed by my compiler
enhancement fix.

I change this to dmd issue.

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


[Issue 11527] JSONValue cannot set values through named fields

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11527


Kenji Hara  changed:

   What|Removed |Added

   Keywords||pull, rejects-valid


--- Comment #2 from Kenji Hara  2013-11-16 02:41:33 PST ---
https://github.com/D-Programming-Language/phobos/pull/1693

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


[Issue 8664] Compiler causes stack overflow with recursive typedef and option -g

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8664


Kenji Hara  changed:

   What|Removed |Added

   Keywords||pull
 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Issue 11527] JSONValue cannot set values through named fields

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11527



--- Comment #1 from Kenji Hara  2013-11-16 02:32:27 PST ---
This is git-head (2.065a) regression.

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


[Issue 11527] New: JSONValue cannot set values through named fields

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11527

   Summary: JSONValue cannot set values through named fields
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: regression
  Priority: P2
 Component: Phobos
AssignedTo: nob...@puremagic.com
ReportedBy: k.hara...@gmail.com


--- Comment #0 from Kenji Hara  2013-11-16 02:31:46 PST ---
Following test cases will throw JSONException in runtime:

import std.json;
void main()
{
JSONValue v;
v.integer = 1;
}

Output:

std.json.JSONException@std\json.d(91): JSONValue is not an integer

This is caused by:
https://github.com/D-Programming-Language/phobos/pull/1421

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


[Issue 8664] Compiler causes stack overflow with recursive typedef and option -g

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8664



--- Comment #2 from github-bugzi...@puremagic.com 2013-11-16 02:22:07 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/e248270405b8b572115e0474180b258a0d2b73a0
fix Issue 8664 - Compiler causes stack overflow with recursive typedef and
option -g

https://github.com/D-Programming-Language/dmd/commit/a4319e8383c4a78ef32f51e5e1175cb27439b4e9
Merge pull request #2777 from WalterBright/fix8664

fix Issue 8664 - Compiler causes stack overflow with recursive typedef and
option -g

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


[Issue 10483] ICE(expression.c) .init of struct with block initialized 2D static array

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10483


Kenji Hara  changed:

   What|Removed |Added

  Component|coffimplib  |DMD
Version|D1  |D1 & D2


--- Comment #1 from Kenji Hara  2013-11-16 02:10:52 PST ---
I don't know this is really an issue in D1, but same bug had existed in 2.063
and earlier, and it's fixed in 2.064, by:
https://github.com/D-Programming-Language/dmd/pull/2136

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


[Issue 8255] [CTFE] ICE when passing 'ref' literal

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8255


Kenji Hara  changed:

   What|Removed |Added

 Resolution|WORKSFORME  |FIXED


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


[Issue 9366] D1: Appending a value cast to void to a void[] crashes DMD.

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=9366


  changed:

   What|Removed |Added

 CC||mailnew4s...@gmail.com


--- Comment #4 from   2013-11-16 02:09:39 PST ---
This, as well as 11 other ICE reports, are D1 only.
Should these be closed, as D1 is not supported anymore?

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


[Issue 8511] Segfault with forward-referenced enum

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8511


Kenji Hara  changed:

   What|Removed |Added

 Resolution|WORKSFORME  |FIXED


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


[Issue 6439] [CTFE] union fields are initialized independently

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=6439


Kenji Hara  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #2 from Kenji Hara  2013-11-16 02:05:09 PST ---
Worksforme from 2.064.

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


[Issue 1687] "extern (C++) interface" and vtbl

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=1687



--- Comment #9 from Andrei Alexandrescu  2013-11-16 02:02:08 
PST ---
... and thanks!

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


[Issue 1687] "extern (C++) interface" and vtbl

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=1687


Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #8 from Andrei Alexandrescu  2013-11-16 02:01:47 
PST ---
Worked as expected after I pulled the latest. Closing.

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


[Issue 2481] mixing field into anonymous struct inside class generates field overlapping vtable

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=2481


Kenji Hara  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #3 from Kenji Hara  2013-11-16 02:03:30 PST ---
Worksforme in D2 with test case, and D1 is not supported anymore.

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


[Issue 3991] Void initializers in unions considered overlapping

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=3991


Kenji Hara  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #2 from Kenji Hara  2013-11-16 02:04:10 PST ---
Worksforme in D2 with test case, and D1 is not supported anymore.

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


[Issue 11526] New: buffer overflow detected __fortify_fail when building dmd from source

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11526

   Summary: buffer overflow detected __fortify_fail when building
dmd from source
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: blocker
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: timothee.co...@gmail.com


--- Comment #0 from Timothee Cour  2013-11-16 
01:38:08 PST ---
reposting from http://comments.gmane.org/gmane.comp.lang.d.general/135653:

On my one of my machines (ubuntu64) I cannot compile from source unless I pass
DEBUG=1 flag; 

without DEBUG=1 I get :

$cd src/dmd
$make -f posix.mak -j8
#ok till this point
$cd ../druntime
$make -f posix.mak -j8 DMD=../dmd/dmd
../dmd/dmd -lib -oflib/libdruntime-linuxdefault.a -Xfdruntime.json ...#etc

*** buffer overflow detected ***: ../dmd/dmd terminated
=== Backtrace: =
/lib/x86_64-linux-gnu/libc.so.6
#also shows those symbols:
__fortify_fail
_IO_default_xsputn
_IO_vfprintf
__vsprintf_chk
__sprintf_chk
../dmd/dmd
__libc_start_main
../dmd/dmd
=== Memory map: 

I get the same from git master.


with DEBUG=1 it works

on another ubuntu64 machine, I don't have this problem, but I actually need it
to work on the 1st machine. Not sure what could be the problem?

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


[Issue 11526] buffer overflow detected __fortify_fail when building dmd from source

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11526


Timothee Cour  changed:

   What|Removed |Added

 CC||timothee.co...@gmail.com


--- Comment #1 from Timothee Cour  2013-11-16 
01:39:56 PST ---
both machines are 12.04 btw.

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


[Issue 11525] REG(2.065): Error: 'a[] *= a[]' each element is not a scalar, it is a Complex!double

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11525



--- Comment #2 from Timothee Cour  2013-11-16 
01:32:00 PST ---
(In reply to comment #1)
> I'm not sure this is supposed to work... Structs with overloaded operators
> generally don't work with array operations.

I don't see why it shouldn't be allowed (besides the fact that it did work up
till now). Without this complex numbers are very much 2nd class citizens for
example.

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


[Issue 11525] REG(2.065): Error: 'a[] *= a[]' each element is not a scalar, it is a Complex!double

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11525


yebblies  changed:

   What|Removed |Added

 CC||yebbl...@gmail.com


--- Comment #1 from yebblies  2013-11-16 20:27:53 EST ---
I'm not sure this is supposed to work... Structs with overloaded operators
generally don't work with array operations.

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


[Issue 11525] New: REG(2.065): Error: 'a[] *= a[]' each element is not a scalar, it is a Complex!double

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11525

   Summary: REG(2.065): Error: 'a[] *= a[]' each element is not a
scalar, it is a Complex!double
   Product: D
   Version: D2
  Platform: All
OS/Version: All
Status: NEW
  Severity: regression
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: timothee.co...@gmail.com


--- Comment #0 from Timothee Cour  2013-11-16 
01:15:17 PST ---
works in 2.064.2, fails in 2.065
import std.complex;
void main(){
  auto a=[Complex!double.init];
  a[]*=a[];
}

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


[Issue 11277] Bad default main.d (bad hello world example)

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11277


Rainer Schuetze  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #3 from Rainer Schuetze  2013-11-16 01:03:10 
PST ---
Templates updated in Visual D 0.3.37

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


[Issue 11032] Win64 lib paths seem to be messed up

2013-11-16 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11032


Rainer Schuetze  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


--- Comment #2 from Rainer Schuetze  2013-11-16 01:01:20 
PST ---
Hopefully sorted out with dmd-2.064 and Visual D 0.3.37

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


  1   2   >