www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2111] New: Protection incorrectly resolved when accessing super class' tupleof

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2111

           Summary: Protection incorrectly resolved when accessing super
                    class' tupleof
           Product: D
           Version: 1.030
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: h3r3tic mat.uni.torun.pl


Main.d
------
module Main;
import Mod;

class Bar : Foo {
        alias typeof(Foo.tupleof) Bleh;
}


Mod.d
-----
module Mod;

class Foo {
        protected int a;
}


Result:
-------
Main.d(5): class Mod.Foo member a is not accessible



BTW, when tupleof fails at protection, it becomes useless... There should
either be a way to check protection for fields or tupleof should not yield
inaccessible fields at all, IMHO.


-- 
May 18 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2111


bugzilla digitalmars.com changed:

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





Fixed dmd 1.031


-- 
Jun 22 2008