This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Array-to-pointer conversion in cast expressions
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Matt Austern <austern at apple dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 24 Sep 2002 00:47:01 +0100
- Subject: Re: Array-to-pointer conversion in cast expressions
- Organization: Codesourcery LLC
- References: <202F4A01-CF48-11D6-812E-00039390D9E0@apple.com>
Matt Austern wrote:
I can't find any justification in the Standard for the compiler to
treat "(P22) a" and "static_cast<P22>(a)" differently. So, the
usual questions:
they are not different.
(2) If the answer to #1 is no: is this a known bug, e.g. one of
may be - is http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3518
related to this array->pointer decay?
the bugs in the "we'll see a fix with the new parser"
category?
No, I think this is not a parser bug
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org