This is the mail archive of the gcc-help@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: Warning when using const pointer to fixed size array


> I am one.

Sweet! Then I got to the right person :)

> 
> 6.7.3 Para 8: "If the specification of an array type
> includes any type
> qualifiers, the element type is so qualified, not the array
> type.  For
> two qualified types to be compatible, both shall have the
> identically
> qualified version of a compatible type."

Thanks for the clarification, Andrew. This is all I needed to know. 

Apparently, the standard is slightly different for C++ because I don't 
get a warning in the same situation. This is the clarification I was 
seeking regarding the C standard.

Thanks a bunch




      __________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now
http://ca.toolbar.yahoo.com.


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