g++ has trouble with nested classes in a template
Gerald Pfeifer
pfeifer@dbai.tuwien.ac.at
Sun Jul 5 23:42:00 GMT 1998
On Sat, 4 Jul 1998, Brian White wrote:
> G++ seems to have trouble accessing sub-classes of template classes. The
> following code illustrates the problem:
> [...]
> bug.cc:18: Internal compiler error 90.
> bug.cc:18: Please submit a full bug report to `egcs-bugs@cygnus.com'.
While I could reproduce this error with egcs-1.0.3a, with a recent
snapshot (egcs-2.91.43 19980628) this snippet compiles fine and all
I get is
bug.cc: In instantiation of `Cache<int,void *>':
bug.cc:26: instantiated from here
bug.cc:26: warning: all member functions in class `Cache<int,void *>'
are private
I.e., with current snapshots (and thus most probably egcs 1.1 as well),
this problem has been solved.
Gerald
--
Gerald Pfeifer (Jerry) Vienna University of Technology
pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/
More information about the Gcc-bugs
mailing list