Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
March 28, 2015 [Issue 14360] DMD should compile SDC test0156.d | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14360 ag0aep6g@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ag0aep6g@gmail.com --- Comment #1 from ag0aep6g@gmail.com --- As in issue 14353, dmd needs the ampersand: `return &bar;`. Without it, it's treated as a parentheses-less call. -- |
March 28, 2015 [Issue 14360] DMD should compile SDC test0156.d | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14360 --- Comment #2 from Shammah Chancellor <shammah.chancellor@gmail.com> --- (In reply to ag0aep6g from comment #1) > As in issue 14353, dmd needs the ampersand: `return &bar;`. Without it, it's treated as a parentheses-less call. Has the spec changed with regards to this? There is not "Symbol.Function" going on in this test. -- |
March 28, 2015 [Issue 14360] DMD should compile SDC test0156.d | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14360 --- Comment #3 from ag0aep6g@gmail.com --- (In reply to Shammah Chancellor from comment #2) > Has the spec changed with regards to this? I don't know if the spec maybe changed at some point. Could be that a naked function/method symbol without parentheses was treated as a function pointer / delegate in the distant past. I think they've been calls for at least a couple of years, though. > There is not "Symbol.Function" going on in this test. It doesn't matter if it's "Symbol.Function" or just "Function". -- |
March 29, 2015 [Issue 14360] DMD should compile SDC test0156.d | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14360 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #4 from Kenji Hara <k.hara.pg@gmail.com> --- (In reply to ag0aep6g from comment #3) > (In reply to Shammah Chancellor from comment #2) > > Has the spec changed with regards to this? > > I don't know if the spec maybe changed at some point. Could be that a naked function/method symbol without parentheses was treated as a function pointer / delegate in the distant past. I think they've been calls for at least a couple of years, though. As far as I know (at least from before the D1.000 release), D has always required address operator to take function pointer / delegate from a function identifier. It's definitely a bug in SDC. -- |
June 09, 2015 [Issue 14360] DMD should compile SDC test0156.d | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14360 Andrei Alexandrescu <andrei@erdani.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |D2 -- |
Copyright © 1999-2021 by the D Language Foundation