This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Array-to-pointer conversion in cast expressions


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]