www.digitalmars.com         C & C++   DMDScript  

D.gnu - gdc 0.23 private class in a module can be export

Hello ,I have found a "bug" in gdc 0.23.When putting a private class in a 
module .the class can be "seem" in another module .
Example code :
module aa;

import std.stdio;
private class AA
    void func ()
// hello.d
import aa;

int main(char[][] args)
    AA a = new AA();
    return 0;

The example can be comopiled and linked without any warning or error.I think 
it is a bug in gdc.

Apr 25 2007