From -7560422877843401573
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,add62e0f5e586127,start
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1994-09-19 21:53:39 PST
Newsgroups: comp.std.c++
Path: bga.com!news.sprintlink.net!uunet!fmrco!kjarrad!dcb
From: dcb@lovat.fmrco.com (David Binderman)
Subject: compile time consts
Message-ID: <1994Sep19.110228.3591@fmrco.uucp>
Sender: news@fmrco.uucp
Reply-To: dcb@lovat.fmrco.com
Organization: Fidelity Investments Ltd.
Date: Mon, 19 Sep 1994 11:02:28 GMT
Lines: 15

Hello there,

I claim the following is legal code. Three compilers disagree with me. 
Who is correct ?

#include <math.h>

const int N = 1000;
const int Q = (int) sqrt( (double) N);
int a[ Q];

Regards

David C Binderman BSc MSc      +44 171 975 4723         dcb@lovat.fmrco.com



