Thread overview
[Issue 7498] New: function expected before (), not <function>
Feb 14, 2012
Ellery Newcomer
Feb 14, 2012
dawg@dawgfoto.de
Feb 14, 2012
dawg@dawgfoto.de
Feb 14, 2012
Walter Bright
Feb 14, 2012
Walter Bright
February 14, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7498

           Summary: function expected before (), not <function>
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: ellery-newcomer@utulsa.edu


--- Comment #0 from Ellery Newcomer <ellery-newcomer@utulsa.edu> 2012-02-13 16:47:04 PST ---
dmd 2.058 beta.

the code:

template Heap(){
    template Inner(){
        mixin template IndexMixin(){
            void insert(SomeValue)(SomeValue value){
            }
        }
    }
}
class MultiIndexContainer(Value, Args...){
    alias Args[0] L0;
    alias L0.Inner!() M0;
    mixin M0.IndexMixin!() index0;
    class Index0{
        void baburk(){
            this.outer.index0.insert(1);
        }
    }
}
alias MultiIndexContainer!(int, Heap!()) C1;

void main(){}

the fireworks:

multi_index.d(15): Error: function expected before (), not
'this.this.this.insert(SomeValue)'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 14, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7498


dawg@dawgfoto.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dawg@dawgfoto.de
           Severity|normal                      |regression


--- Comment #1 from dawg@dawgfoto.de 2012-02-13 18:16:45 PST ---
This compiles fine with 2.057.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 14, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7498



--- Comment #2 from dawg@dawgfoto.de 2012-02-13 18:21:47 PST ---
Introduced with: https://github.com/D-Programming-Language/dmd/commit/1d4438f

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 14, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7498


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com


--- Comment #3 from Walter Bright <bugzilla@digitalmars.com> 2012-02-14 00:23:35 PST ---
Reduced test case:

template IndexMixin(){
    void insert(T)(T value){  }
}

class MultiIndexContainer{
    mixin IndexMixin!() index0;
    class Index0{
        void baburk(){
            this.outer.index0.insert(1);
        }
    }
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 14, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7498



--- Comment #4 from github-bugzilla@puremagic.com 2012-02-14 00:29:46 PST ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/de89294e9ed1842c9fc36b5ce0d37cfc14952238 revert commit 1d4438f, fix bug 7498, reopen bug 6738

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 14, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7498


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------