View mode: basic / threaded / horizontal-split · Log in · Help
May 15, 2012
[Issue 8100] New: [ICE] with templated subclassing
http://d.puremagic.com/issues/show_bug.cgi?id=8100

          Summary: [ICE] with templated subclassing
          Product: D
          Version: D2
         Platform: x86
       OS/Version: Windows
           Status: NEW
         Severity: normal
         Priority: P2
        Component: DMD
       AssignedTo: nobody@puremagic.com
       ReportedBy: bearophile_hugs@eml.cc


--- Comment #0 from bearophile_hugs@eml.cc 2012-05-15 11:10:14 PDT ---
DMD 2.060alpha crashes:


class Foo(T1) { T1.Q r; }
class Bar(T2) : Foo!(Bar!T2) {}
Bar!bool b;
void main() {}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 16, 2013
[Issue 8100] [ICE] with templated subclassing
http://d.puremagic.com/issues/show_bug.cgi?id=8100


yebblies <yebblies@gmail.com> changed:

          What    |Removed                     |Added
----------------------------------------------------------------------------
                CC|                            |yebblies@gmail.com


--- Comment #1 from yebblies <yebblies@gmail.com> 2013-01-17 02:18:03 EST ---
No ice with 2.062

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 16, 2013
[Issue 8100] [ICE] with templated subclassing
http://d.puremagic.com/issues/show_bug.cgi?id=8100


bearophile_hugs@eml.cc changed:

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


--- Comment #2 from bearophile_hugs@eml.cc 2013-01-16 10:11:55 PST ---
Now it gives:

temp.d(1): Error: no property 'Q' for type 'temp.Bar!(bool).Bar'
temp.d(1): Error: T1.Q is used as a type
temp.d(2): Error: template instance temp.Foo!(Bar) error instantiating
temp.d(3):        instantiated from here: Bar!(bool)
temp.d(3): Error: template instance temp.Bar!(bool) error instantiating


Closed.

-- 
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