jk@cs.man.ac.uk (John Kewley ICL) (09/04/90)
The following program fragment does not comile compile on g++ or Sun 2.0. The
error message given by g++ is more succinct and, I suspect, is clearer.
Unfortunately I do not know what an Aggregate Typedef is.
The problem goes away when I move the const after the uint.
typedef unsigned int uint;
static const int ::MIN= 10;
static const unsigned int ::MID= 15;
static const uint ::MAX= 20;
int x[::MIN];
int y[::MID];
int z[::MAX];
g++: "`uint' fails to be an aggregate typedef"
--
J.K.
John M. Kewley, ICL, Wenlock Way, West Gorton, Manchester. M12 5DR
Tel: (+44) 61 223 1301 X2138 Email: jk@r6.cs.man.ac.uk / jk@nw.stl.stc.co.uk