This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] c++ template instantiation generates zero-sized array (pr19989)
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Josh Conner <jconner at apple dot com>
- Cc: gcc at gcc dot gnu dot org, Jason Merrill <jason at redhat dot com>, Nathan Sidwell <nathan at codesourcery dot com>
- Date: Wed, 02 Nov 2005 09:11:44 -0800
- Subject: Re: [RFC] c++ template instantiation generates zero-sized array (pr19989)
- References: <43679D5E.5080300@apple.com> <43681277.4080606@codesourcery.com> <4368F300.8040105@apple.com>
Josh Conner wrote:
> I think this is consistent with my proposal -- the first example was
> non-conforming, but accepted without -pedantic (as we do with other
> zero-sized arrays). The second example was conforming and the only way
> to alter its behavior was with the -fpermissive option.
My point was that conforming programs should compile and behave
identically in all modes; therefore -fpermissive must not alter the
behavior.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304