Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!mucs!jk From: jk@cs.man.ac.uk (John Kewley ICL) Newsgroups: comp.lang.c++ Subject: Aggregate Typedefs Message-ID: <1664@m1.cs.man.ac.uk> Date: 4 Sep 90 10:57:53 GMT Sender: news@cs.man.ac.uk Reply-To: jk@cs.man.ac.uk (John Kewley ICL) Organization: Department of Computer Science, University of Manchester UK Lines: 22 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