Thread overview | ||||||
---|---|---|---|---|---|---|
|
August 27, 2009 [Issue 3268] can't compare pointer to functions when one is const | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3268 --- Comment #1 from Andrei Alexandrescu <andrei@metalanguage.com> 2009-08-27 14:11:13 PDT --- void fun() {} void main() { auto a = &fun; const b = a; assert(a == b); } This fails to compile. The error message is odd too: Error: array equality comparison type mismatch, void function() vs const(void function()) The code should work. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 07, 2011 [Issue 3268] can't compare pointer to functions when one is const | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3268 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yebblies@gmail.com --- Comment #2 from yebblies <yebblies@gmail.com> 2011-06-06 20:37:46 PDT --- Possible fix: https://github.com/D-Programming-Language/dmd/pull/89 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 08, 2011 [Issue 3268] can't compare pointer to functions when one is const | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3268 --- Comment #3 from yebblies <yebblies@gmail.com> 2011-06-08 04:41:23 PDT --- Better fix: https://github.com/D-Programming-Language/dmd/pull/96 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 02, 2011 [Issue 3268] can't compare pointer to functions when one is const | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3268 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #4 from Walter Bright <bugzilla@digitalmars.com> 2011-09-02 02:37:40 PDT --- https://github.com/D-Programming-Language/dmd/commit/306df8eaa6f8a987f76f401a1e03d8edf1f1e2ae -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation