[Issue 7110] opSlice() opIndex functions works unstable as template arguments

2012-03-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7110


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

   What|Removed |Added

 Status|REOPENED|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 7678] Add -cflags switch for DMD that allows passing flags to GCC or ${CC}

2012-03-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7678


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

   What|Removed |Added

 CC||bugzi...@digitalmars.com
   Severity|normal  |enhancement


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


[Issue 7641] std.typecons.Proxy incorrectly allows implicit conversion to class

2012-03-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7641



--- Comment #2 from github-bugzi...@puremagic.com 2012-03-10 00:45:06 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/368d966cb0efd1b326d9ac6a5879f96864f92416
Merge pull request #780 from 9rnsr/fix7641

fix Issue 7641 - std.typecons.Proxy incorrectly allows implicit conversion to
class

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


[Issue 7543] inout opApply should work properly

2012-03-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7543



--- Comment #14 from Stewart Gordon s...@iname.com 2012-03-10 03:45:21 PST ---
(In reply to comment #10)
 void foo(inout(int)* x, inout(int)* delegate(inout(int)* x) dg)
 {
inout(int)* bar(inout(int)* m) { return m;}
auto dg2 = bar;
assert(typeof(dg2) == typeof(dg)); // ???

Whether we pick (a) or (b), it should apply equally to declarations in the body
of foo as to parameters of foo itself.  So this assert would pass either way.

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


[Issue 7641] std.typecons.Proxy incorrectly allows implicit conversion to class

2012-03-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7641


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 7592] Conversion from ireal to ifloat broken when using xmm

2012-03-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7592



--- Comment #2 from github-bugzi...@puremagic.com 2012-03-10 12:05:40 PST ---
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/5502fd412e4a854cbd35fbd9b51ad98e406d5b6c
fix issue 7592
https://github.com/yebblies/dmd/commit/d847c1c2dd3c254324924530beab38b49510bf13

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


[Issue 7592] Conversion from ireal to ifloat broken when using xmm

2012-03-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7592



--- Comment #3 from github-bugzi...@puremagic.com 2012-03-10 12:05:47 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/b134e40437b5313cf021fcb8e27c6e3007d8ef67
fix issue 7592
https://github.com/yebblies/dmd/commit/d847c1c2dd3c254324924530beab38b49510bf13

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


[Issue 7680] New: template specialization bug

2012-03-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7680

   Summary: template specialization bug
   Product: D
   Version: unspecified
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: d...@dawgfoto.de


--- Comment #0 from d...@dawgfoto.de 2012-03-10 12:32:24 PST ---
cat  bug.d  CODE
struct Bar(T) {}
template Foo26(T:Bar!(const T))
{
pragma(msg, const, T);
}

template Foo26(T:Bar!(T))
{
pragma(msg, mod, T);
}

void main()
{
alias Foo26!(Bar!int) foo;
}
CODE

dmd -c bug



I'm not sure whether Bar!int should match Bar!(const T) in the first place.
However if it does it must be a MATCHconst.

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


[Issue 7592] Conversion from ireal to ifloat broken when using xmm

2012-03-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7592


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 7648] Can't open file (Windows UTF8)

2012-03-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7648


Martin Krejcirik m...@krej.cz changed:

   What|Removed |Added

 CC||m...@krej.cz


--- Comment #1 from Martin Krejcirik m...@krej.cz 2012-03-10 16:21:07 PST ---
(In reply to comment #0)
auto file2 = File(Привет.txt);

Can't test with this filename as I have no Russian support, but it works for me
with accented characters.

import std.stdio, std.stream;

void main(char[][] args)
{
char[] filename;
if (args.length==2)
filename=args[1];
else
filename=utfname-žlutý.txt;

writefln(filename: %s, filename);
File file = new File(filename);
}

However, what doesn't work is reading UTF8 from the commandline (using chcp
65001):

D:\devel\bugsutfname
filename: utfname-žlutý.txt

D:\devel\bugsutfname utfname-zluty.txt
filename: utfname-zluty.txt

D:\devel\bugsutfname utfname-žlutý.txt
Error: 1invalid UTF-8 sequence
filename:

OS Windows XP Czech

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


[Issue 3827] automatic joining of adjacent strings is bad

2012-03-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827



--- Comment #26 from bearophile_h...@eml.cc 2012-03-10 17:31:34 PST ---
An example of the problems this
avoids:http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.announcearticle_id=22649

Andrej Mitrovic:

 I see you are not the only one who started writing string array
 literals like this:
 
 enum PEGCode = grammarCode!(
  Grammar - S Definition+ EOI
 ,Definition - RuleName Arrow Expression
 ,RuleName   - Identifier(ParamList?)
 ,Expression - Sequence (OR Sequence)*
 );
 
 IOW comma on the left side. I know it's not a style preference but
 actually a (unfortunate but needed) technique for avoiding bugs. :)

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


[Issue 3827] automatic joining of adjacent strings is bad

2012-03-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827


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

   What|Removed |Added

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


--- Comment #27 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-03-10 
17:56:16 PST ---
(In reply to comment #26)
  enum PEGCode = grammarCode!(
   Grammar - S Definition+ EOI
  ,Definition - RuleName Arrow Expression
  ,RuleName   - Identifier(ParamList?)
  ,Expression - Sequence (OR Sequence)*
  );

Note that this is Philippe Sigaud's code. So you can him, and me to the list of
people affected by this.

I'm doing string processing in D on a day-to-day basis, and whenever I have a
list of strings I eventually end up shooting myself in the foot because of a
missing comma. It's very easy (at least for clumsy me) to make the mistake.
E.g. writing some headers to ignore:

string[] ignoredHeaders = [
foo.bar  // todo: have to fix this later
foo.do,  // todo: later
];

When I have comments next to the strings it makes it easy to miss the missing
comma, especially if the strings are of a different length.

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


[Issue 7681] New: Regression(2.059head):ICE:opCatAssign(delegate) to undefined identifier

2012-03-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7681

   Summary: Regression(2.059head):ICE:opCatAssign(delegate) to
undefined identifier
   Product: D
   Version: D2
  Platform: x86
OS/Version: Windows
Status: NEW
  Severity: regression
  Priority: P2
 Component: DMD
AssignedTo: nob...@puremagic.com
ReportedBy: kekeni...@yahoo.co.jp


--- Comment #0 from kekeni...@yahoo.co.jp 2012-03-10 21:43:39 PST ---
When building the following code, dmd crushes after compile-error message.
DMD 2.058 does not crush.

  void main() {
  undefined ~= delegate(){};
  }


This syntax is frequently used by DFL applications. Such as:

  auto object = new SomeObject();// defined, of course :)
  object.click ~= (sender, args){ doSomething(); };


Environment:

Windows XP SP3 32bit
DMD 2.059head

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