From -5913506371775928562 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f78e5,8372ae6de42be399 X-Google-Attributes: gidf78e5,public X-Google-ArrivalTime: 2004-02-28 18:10:13 PST Return-Path: X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news.alt.net!comp-std-cpp-robomod!not-for-mail X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) Delivered-To: std-c++@ucar.edu From: Gabriel Dos Reis Newsgroups: comp.std.c++ Subject: Re: Array of size 0 Organization: Texas A&M University, Department of Computer Science Message-ID: References: <403601F6.8010706@ircad.u-strasbg.fr> <7d428a77.0402221805.51174786@posting.google.com> <7d428a77.0402241229.71aaae63@posting.google.com> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@supernews.com X-Spam-Checker-Version: SpamAssassin 2.60-mulga_r1 (1.212-2003-09-23-exp) on mulga.cs.mu.OZ.AU X-Spam-Status: No, hits=0.0 required=5.2 tests=none autolearn=no version=2.60-mulga_r1 Approved: Fergus Henderson , moderator of comp.std.c++ Date: Sat, 28 Feb 2004 20:07:55 CST Lines: 30 Xref: archiver1.google.com comp.std.c++:1246 wizofaus@hotmail.com (Dylan Nicholson) writes: | > Given that 'T[0]' is ill-formed in the first place, what is expected | > about 'T[n]' when n has a runtime null value? | > | How is T[0] ill-formed? Or do you mean 'T local_array[0];' ? Yes. That is the compile-time counter part of new T[n] with n == 0. Try template struct Z { }; int main() { Z z; } too. -- Gabriel Dos Reis gdr@cs.tamu.edu Texas A&M University -- Computer Science Department 301, Bright Building -- College Station, TX 77843-3112 --- [ comp.std.c++ is moderated. To submit articles, try just posting with ] [ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ] [ --- Please see the FAQ before posting. --- ] [ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]