Bug 2111 – Protection incorrectly resolved when accessing super class' tupleof

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2008-05-18T16:44:00Z
Last change time
2014-02-24T15:31:08Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
h3r3tic

Comments

Comment #0 by h3r3tic — 2008-05-18T16:44:13Z
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.
Comment #1 by bugzilla — 2008-06-22T18:55:38Z
Fixed dmd 1.031