View mode: basic / threaded / horizontal-split · Log in · Help
October 06, 2012
[Issue 8768] New: DMD segfaults if templated ctor is inherited
http://d.puremagic.com/issues/show_bug.cgi?id=8768

          Summary: DMD segfaults if templated ctor is inherited
          Product: D
          Version: D2
         Platform: All
       OS/Version: All
           Status: NEW
         Severity: normal
         Priority: P2
        Component: DMD
       AssignedTo: nobody@puremagic.com
       ReportedBy: admin@dav1d.de


--- Comment #0 from David <admin@dav1d.de> 2012-10-06 08:22:15 PDT ---
class Bar {    
   this(T)(string s, T x) {}
}


class Main : Bar {
   this(string s) {}

   //this()(string s) {} // this version compiles    
}


Note: this also happens with GDC and LDC

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 07, 2013
[Issue 8768] ICE(access.c) Implicit super call to templated constructor
http://d.puremagic.com/issues/show_bug.cgi?id=8768


yebblies <yebblies@gmail.com> changed:

          What    |Removed                     |Added
----------------------------------------------------------------------------
          Keywords|                            |ice
                CC|                            |yebblies@gmail.com
           Summary|DMD segfaults if templated  |ICE(access.c) Implicit
                  |ctor is inherited           |super call to templated
                  |                            |constructor
          Severity|normal                      |critical


--- Comment #1 from yebblies <yebblies@gmail.com> 2013-01-07 13:59:50 EST ---
It looks like the call to super can't be resolved, resulting in 'd' being null
inside accessCheck.

class A {    
   this(T)() {}
}

class B : A {
   this() {}
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 09, 2013
[Issue 8768] ICE(access.c) Implicit super call to templated constructor
http://d.puremagic.com/issues/show_bug.cgi?id=8768


Kenji Hara <k.hara.pg@gmail.com> changed:

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


--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2013-01-08 23:23:59 PST ---
The root cause is same as 9273.
(Bug 9273 is a regression, so mark as a duplication.)

*** This issue has been marked as a duplicate of issue 9273 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Top | Discussion index | About this forum | D home