[Issue 4899] Ddoc's warnings about stray parens should include file and line numbers

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4899 --- Comment #2 from Jonathan M Davis 2010-09-20 23:47:02 PDT --- /++ (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +/ module d; void main() { } -- Configure issuemail: http://d.purema

[Issue 3847] To avoid a C code bug

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3847 --- Comment #15 from BCS 2010-09-20 22:15:25 PDT --- (In reply to comment #11) > more > readable and less bug-prone operators. Franky I find the fact that && and || are not keywords make them *More* readable and as a result *Less* bug-prone.

[Issue 3175] rejects templated ref return function

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3175 Shin Fujishiro changed: What|Removed |Added CC||rsi...@gmail.com --- Comment #2 from

[Issue 4446] Templated function result can't be ref if tiargs are infered w/ value tiarg

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4446 Shin Fujishiro changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Issue 4898] Can't see parent function's variables from nested functions when debugging

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4898 Aldo Nunez changed: What|Removed |Added Severity|normal |enhancement --- Comment #2 from Aldo Nune

[Issue 4290] 'Fragile' opCmp/toHash signature errors

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4290 --- Comment #8 from Kevin Bealer 2010-09-20 20:04:28 PDT --- I think when you are defining opCmp, it's a bit like overriding a function signature, therefore, if D tries to prevent function hijacking, it makes perfect sense for it to do the sam

[Issue 4742] int % BigInt should work

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4742 Don changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 4903] New: opopAssignRight is needed for operator overloading

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4903 Summary: opopAssignRight is needed for operator overloading Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: enhancement Priority: P

[Issue 3847] To avoid a C code bug

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3847 Brad Roberts changed: What|Removed |Added Resolution|FIXED |WONTFIX --- Comment #14 from Brad Rober

[Issue 3847] To avoid a C code bug

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3847 bearophile_h...@eml.cc changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Issue 4375] Require explicit braces when 'else' is ambiguous

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4375 --- Comment #5 from Jonathan M Davis 2010-09-20 18:26:31 PDT --- "The dangling else problem" is essentially the official name of the problem of knowing which if to put the last else with if you have a series of if statements with an else state

[Issue 3847] To avoid a C code bug

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3847 --- Comment #12 from Stewart Gordon 2010-09-20 18:04:33 PDT --- (In reply to comment #11) > Some C++ programmers don't even know about 'and' and 'or' because > the C++ compilers do nothing to suggest, encourage or force the > usage of those m

[Issue 4902] New: No label and variable with the same name error

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4902 Summary: No label and variable with the same name error Product: D Version: D2 Platform: All OS/Version: Windows Status: NEW Severity: enhancement Priority: P2

[Issue 4902] No label and variable with the same name error

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4902 --- Comment #1 from bearophile_h...@eml.cc 2010-09-20 18:01:57 PDT --- So far in my code I have never had a bug caused by this, so I consider this low-priority. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email

[Issue 4407] Catch wrong argument<->attribute assignments in methods

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4407 --- Comment #2 from bearophile_h...@eml.cc 2010-09-20 17:47:19 PDT --- It's present among the Semantic Errors of Java code in the Google Web Toolkit too: http://code.google.com/intl/en-EN/webtoolkit/tools/codepro/doc/features/audit/audit_rules_

[Issue 4375] Require explicit braces when 'else' is ambiguous

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4375 --- Comment #4 from bearophile_h...@eml.cc 2010-09-20 17:41:37 PDT --- It seems that not just GCC flags this a possible error, in the Java audit rules in some Google Software this problem is named "Dangling Else": http://code.google.com/intl/en

[Issue 4407] Catch wrong argument<->attribute assignments in methods

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4407 --- Comment #1 from bearophile_h...@eml.cc 2010-09-20 17:32:46 PDT --- To keep the language semantics more uniform (instead of special-casing just in methods), all redundant assignments may be flagged as errors: void main() { int x; x

[Issue 3847] To avoid a C code bug

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3847 --- Comment #11 from bearophile_h...@eml.cc 2010-09-20 17:24:18 PDT --- (In reply to comment #10) > It sums up the typical attitude I've seen towards them. Some C++ programmers don't even know about 'and' and 'or' because the C++ compilers do

[Issue 4290] 'Fragile' opCmp/toHash signature errors

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4290 --- Comment #7 from bearophile_h...@eml.cc 2010-09-20 16:46:25 PDT --- It seems we are in irreducible disagreement here. > But opCmp is a valid function! I can still call it, even though it's not put into the typeinfo. Of course. But when it

[Issue 3554] Ddoc generats invalid output for documentation comments with non paired paranthasis

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3554 --- Comment #13 from Jonathan M Davis 2010-09-20 16:45:48 PDT --- Sorry, I didn't read the bug report all the way through. A new warning relating to unmatched parens in ddoc popped up with 2.049, and it specifically mentions $(LPAREN) and $(RP

[Issue 3554] Ddoc generats invalid output for documentation comments with non paired paranthasis

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3554 --- Comment #12 from bearophile_h...@eml.cc 2010-09-20 16:35:12 PDT --- (In reply to comment #11) > They _are_ defined. They're $(LPAREN) and $(RPAREN). Then where is the bug? Because there is a problem still. -- Configure issuemail: http://d

[Issue 3554] Ddoc generats invalid output for documentation comments with non paired paranthasis

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3554 Jonathan M Davis changed: What|Removed |Added CC||jmdavisp...@gmx.com --- Comment #11

[Issue 3554] Ddoc generats invalid output for documentation comments with non paired paranthasis

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3554 --- Comment #10 from bearophile_h...@eml.cc 2010-09-20 12:45:52 PDT --- I may open a different bug report that asks for LPAREN and RPAREN macros to be defined in dmd, to be sure this problem doesn't get lost. -- Configure issuemail: http://d.p

[Issue 3516] Destructor not called on temporaries

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3516 a...@aligature.com changed: What|Removed |Added CC||a...@aligature.com --- Comment #8

[Issue 4470] Problems with std.bigint mod and divide

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4470 Don changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Issue 4583] PIC code not working: EBX register set incorrectly

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4583 Don changed: What|Removed |Added Keywords||wrong-code CC|

[Issue 4524] Bus error with nested struct

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4524 Don changed: What|Removed |Added Keywords||wrong-code CC|

[Issue 4541] Intrinsic functions do not have pointers

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4541 Don changed: What|Removed |Added CC||necrom...@gmail.com --- Comment #1 from Don 201

[Issue 4613] temporary generated inside foreach is not correctly destructed

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4613 Don changed: What|Removed |Added Keywords||wrong-code CC|

[Issue 4696] function pointers to std.math functions cause linking errors

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4696 Don changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 4632] Copy constructor not invoked on array reallocation

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4632 Don changed: What|Removed |Added Keywords||wrong-code CC|

[Issue 4641] Associative arrays of structs with alias this broken.

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4641 Don changed: What|Removed |Added Keywords||wrong-code CC|

[Issue 3273] Regression(2.031): struct invariant + dtor fails to compile (no line number)

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3273 --- Comment #6 from Don 2010-09-20 08:34:31 PDT --- Have just discovered bug 4714, which still fails with this patch. I think this patch is wrong. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are r

[Issue 4714] Cannot return ref this when struct has invariant

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4714 Don changed: What|Removed |Added CC||clugd...@yahoo.com.au Severity|normal

[Issue 4712] Issue of destructor for temporary instance of structs

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4712 Don changed: What|Removed |Added Keywords||wrong-code Severity|normal

[Issue 4871] compiler crash: dmd: mtype.c:875: void Type::check(): Assertion `tn->mod & 4 || tn->mod & 1' failed.

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4871 Don changed: What|Removed |Added Keywords||ice-on-valid-code CC|

[Issue 4892] Regression(1.062, D1 only) Stack overflow when compiling a recursive alias declaration

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4892 Don changed: What|Removed |Added Keywords||ice-on-invalid-code CC|

[Issue 4899] Ddoc's warnings about stray parens should include file and line numbers

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4899 Johannes Pfau changed: What|Removed |Added CC||johannesp...@gmail.com --- Comment #1

[Issue 3554] Ddoc generats invalid output for documentation comments with non paired paranthasis

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3554 --- Comment #9 from Johannes Pfau 2010-09-20 07:28:22 PDT --- Yeah, I also brought this up on the dmd-internals mailing list recently. The problem is that the patch replaces the parenthesis with LPAREN and RPAREN macros. Dmd should define thes

[Issue 4290] 'Fragile' opCmp/toHash signature errors

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4290 --- Comment #6 from Steven Schveighoffer 2010-09-20 06:03:43 PDT --- (In reply to comment #5) > > Why should the D compiler refuse to compile them? > > The D compiler has to disallow or warn against common traps. But opCmp is a valid functio

[Issue 4901] New: std.algorithm.sort does not compile for interfaces that cannot be printed.

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4901 Summary: std.algorithm.sort does not compile for interfaces that cannot be printed. Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW S

[Issue 4290] 'Fragile' opCmp/toHash signature errors

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4290 --- Comment #5 from bearophile_h...@eml.cc 2010-09-20 05:25:27 PDT --- > Why should the D compiler refuse to compile them? The D compiler has to disallow or warn against common traps. > This is probably a job for a lint-type tool. If some bu

[Issue 4900] New: compiler still slow due to a single function

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4900 Summary: compiler still slow due to a single function Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Co

[Issue 4721] compilation slow when compiling unittests on dcollections

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4721 Steven Schveighoffer changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|

[Issue 3554] Ddoc generats invalid output for documentation comments with non paired paranthasis

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3554 --- Comment #8 from bearophile_h...@eml.cc 2010-09-20 05:03:38 PDT --- This bug doesn't seem fixed in dmd 2.049. This program: /// Return a random number in [0, 10 $(LPAREN) void foo() {} void main() {} Generates an html that doesn't show t

[Issue 4382] Same syntax to access items of Proxy and Tuple and more

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4382 bearophile_h...@eml.cc changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Issue 3420] Allow string import of files using subdirectories

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3420 Don changed: What|Removed |Added Summary|[PATCH] Allow string import |Allow string import of |of file

[Issue 3715] std.string.format can't use const/immutable toString functions

2010-09-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3715 --- Comment #4 from Steven Schveighoffer 2010-09-20 04:36:35 PDT --- Well, first of all, toString should always be const. But pure and nothrow are two options that are also valid. I think some real thought needs to go into delegates and func