Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
May 06, 2011 [Issue 5933] New: Cannot retrieve the return type of an auto-return member function | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5933 Summary: Cannot retrieve the return type of an auto-return member function Product: D Version: D2 Platform: Other OS/Version: Mac OS X Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: kennytm@gmail.com --- Comment #0 from kennytm@gmail.com 2011-05-06 02:19:58 PDT --- Test case: ------------------------------ struct X { auto x() { return 0; } } pragma(msg, typeof(X.init.x)); static assert(is(typeof(&X.init.x) == int delegate())); ------------------------------ () x.d(7): Error: static assert (is(typeof(__error) == int delegate())) is false ------------------------------ The expected output is 'int()' and the static assert should pass. The '__error' comes out because DMD thinks X.init.x is forward-referenced. This also causes a ICE when using with std.traits.ReturnType: ------------------------------ struct X { auto x() { return 0; } } static if (is(typeof(X.init.x) R == return)) {} ------------------------------ Assertion failed: (type), function AliasDeclaration, file declaration.c, line 376. Abort trap ------------------------------ -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
November 25, 2011 [Issue 5933] Cannot retrieve the return type of an auto-return member function | ||||
---|---|---|---|---|
| ||||
Posted in reply to kennytm@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5933 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch Platform|Other |All OS/Version|Mac OS X |All --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2011-11-25 10:56:34 PST --- https://github.com/D-Programming-Language/dmd/pull/535 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 29, 2012 [Issue 5933] Cannot retrieve the return type of an auto-return member function | ||||
---|---|---|---|---|
| ||||
Posted in reply to kennytm@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5933 Robert Clipsham <robert@octarineparrot.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |robert@octarineparrot.com --- Comment #2 from Robert Clipsham <robert@octarineparrot.com> 2012-01-29 13:26:15 GMT --- Is http://d.puremagic.com/issues/show_bug.cgi?id=7159 the same issue as this? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 15, 2012 [Issue 5933] Cannot retrieve the return type of an auto-return member function | ||||
---|---|---|---|---|
| ||||
Posted in reply to kennytm@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5933 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thelastmammoth@gmail.com --- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> 2012-09-15 06:42:01 PDT --- *** Issue 8653 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: ------- |
November 20, 2012 [Issue 5933] Cannot retrieve the return type of an auto-return member function | ||||
---|---|---|---|---|
| ||||
Posted in reply to kennytm@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5933 --- Comment #4 from github-bugzilla@puremagic.com 2012-11-19 17:55:32 PST --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5fa49c163dd294944c834e95676b9e71ed22ee82 fix Issue 5933 - Cannot retrieve the return type of an auto-return member function https://github.com/D-Programming-Language/dmd/commit/2ba68e1db6cf3b2d19dfe4d3f7909ee67948bad3 Merge pull request #535 from 9rnsr/fix5933 Issue 5933 & 7159 - Resolve forward reference to auto-return member function -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 24, 2013 [Issue 5933] Cannot retrieve the return type of an auto-return member function | ||||
---|---|---|---|---|
| ||||
Posted in reply to kennytm@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5933 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|patch |pull --- Comment #5 from Kenji Hara <k.hara.pg@gmail.com> 2013-01-23 22:51:43 PST --- (In reply to comment #1) > https://github.com/D-Programming-Language/dmd/pull/535 That was a wrong change, and it had been reverted. A new pull request is: https://github.com/D-Programming-Language/dmd/pull/1543 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 25, 2013 [Issue 5933] Cannot retrieve the return type of an auto-return member function | ||||
---|---|---|---|---|
| ||||
Posted in reply to kennytm@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5933 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Kenji Hara <k.hara.pg@gmail.com> 2013-01-24 21:08:19 PST --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/960987479e5c591c19e2a49c729c98a7f1218bd5 fix Issue 5933 - Cannot retrieve the return type of an auto-return member function https://github.com/D-Programming-Language/dmd/commit/de4f8f6bf8dc9fcc1730ea4d7f2bbd3e74880f08 Merge pull request #1543 from 9rnsr/fix5933 Issue 5933 & 7159 & 9377 - Invoke function semantic3 correctly where it is required. -- 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