www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Bug in header file generation

reply Satoshi <satoshi rikarin.org> writes:
Hello,
can someone look at this quite simple bug in dmd please?
https://issues.dlang.org/show_bug.cgi?id=16590

I cannot release non-opensource libraries without this.
Oct 14 2016
next sibling parent reply Uplink_Coder <someemail someprovider.some> writes:
On Saturday, 15 October 2016 at 06:51:44 UTC, Satoshi wrote:
 Hello,
 can someone look at this quite simple bug in dmd please?
 https://issues.dlang.org/show_bug.cgi?id=16590

 I cannot release non-opensource libraries without this.
You mean auto ref right ? please attach a small test-case. You can force the function body to be there by making it a template just give it another pair of parens.
Oct 14 2016
parent reply Satoshi <satoshi gshost.eu> writes:
On Saturday, 15 October 2016 at 06:55:31 UTC, Uplink_Coder wrote:
 On Saturday, 15 October 2016 at 06:51:44 UTC, Satoshi wrote:
 Hello,
 can someone look at this quite simple bug in dmd please?
 https://issues.dlang.org/show_bug.cgi?id=16590

 I cannot release non-opensource libraries without this.
You mean auto ref right ? please attach a small test-case. You can force the function body to be there by making it a template just give it another pair of parens.
When I create function like: class TestClass { int aa; auto ref foo() { return aa; } } It is exported correctly, but when I create it like: class TestClass { int aa; ref foo() { // without auto return aa; } } it is exported like: class TestClass { int aa; ref foo(); // Cannot deduce return type }
Oct 17 2016
parent reply Mike Parker <aldacron gmail.com> writes:
On Monday, 17 October 2016 at 07:50:17 UTC, Satoshi wrote:
 On Saturday, 15 October 2016 at 06:55:31 UTC, Uplink_Coder 
 wrote:
 On Saturday, 15 October 2016 at 06:51:44 UTC, Satoshi wrote:
 Hello,
 can someone look at this quite simple bug in dmd please?
 https://issues.dlang.org/show_bug.cgi?id=16590

 I cannot release non-opensource libraries without this.
 It is exported correctly, but when I create it like:
 class TestClass {
     int aa;

     ref foo() { // without auto
         return aa;
     }
 }

 it is exported like:
 class TestClass {
     int aa;

     ref foo(); // Cannot deduce return type
 }
Is there something preventing you from declaring the return type? ref int foo() { ... }
Oct 17 2016
parent reply Satoshi <satoshi gshost.eu> writes:
On Monday, 17 October 2016 at 07:54:33 UTC, Mike Parker wrote:
 On Monday, 17 October 2016 at 07:50:17 UTC, Satoshi wrote:
 On Saturday, 15 October 2016 at 06:55:31 UTC, Uplink_Coder 
 wrote:
 On Saturday, 15 October 2016 at 06:51:44 UTC, Satoshi wrote:
 Hello,
 can someone look at this quite simple bug in dmd please?
 https://issues.dlang.org/show_bug.cgi?id=16590

 I cannot release non-opensource libraries without this.
 It is exported correctly, but when I create it like:
 class TestClass {
     int aa;

     ref foo() { // without auto
         return aa;
     }
 }

 it is exported like:
 class TestClass {
     int aa;

     ref foo(); // Cannot deduce return type
 }
Is there something preventing you from declaring the return type? ref int foo() { ... }
no, but I just try to export headers on druntime and phobos and found this bug.
Oct 17 2016
parent Uplink_Coder <uplink.coder googlemail.com> writes:
On Monday, 17 October 2016 at 08:03:18 UTC, Satoshi wrote:
 On Monday, 17 October 2016 at 07:54:33 UTC, Mike Parker wrote:
 On Monday, 17 October 2016 at 07:50:17 UTC, Satoshi wrote:
 On Saturday, 15 October 2016 at 06:55:31 UTC, Uplink_Coder 
 wrote:
 On Saturday, 15 October 2016 at 06:51:44 UTC, Satoshi wrote:
 Hello,
 can someone look at this quite simple bug in dmd please?
 https://issues.dlang.org/show_bug.cgi?id=16590

 I cannot release non-opensource libraries without this.
 It is exported correctly, but when I create it like:
 class TestClass {
     int aa;

     ref foo() { // without auto
         return aa;
     }
 }

 it is exported like:
 class TestClass {
     int aa;

     ref foo(); // Cannot deduce return type
 }
Is there something preventing you from declaring the return type? ref int foo() { ... }
no, but I just try to export headers on druntime and phobos and found this bug.
Thanks for the report. Could you also post in in bugzilla ? Thanks!
Oct 17 2016
prev sibling parent reply Satoshi <satoshi gshost.eu> writes:
I posted 3 more bugs what I found.
Seriously, can someone fix these bugs, please?

Thanks!


https://issues.dlang.org/show_bug.cgi?id=16590
Oct 25 2016
parent Daniel Kozak via Digitalmars-d <digitalmars-d puremagic.com> writes:
Last two are ok, I do not see any error


Dne 25.10.2016 v 15:24 Satoshi via Digitalmars-d napsal(a):
 I posted 3 more bugs what I found.
 Seriously, can someone fix these bugs, please?

 Thanks!


 https://issues.dlang.org/show_bug.cgi?id=16590
Oct 25 2016