Since this is perfectly legal C and C++, it seems you should be opening a PMR with your compiler vendor.
:>: -----Original Message----- :>: From: IBM Mainframe Discussion List [mailto:[email protected]] On :>: Behalf Of Paul Gilmartin :>: Sent: Tuesday, September 04, 2012 4:51 PM :>: To: [email protected] :>: Subject: Re: The IBM zEnterprise EC12 announcment :>: :>: On Tue, 4 Sep 2012 15:01:37 -0400, Thomas David Rivers wrote: :>: > :>: > cxx: t.c line 3:Error #144: a value of type "const char [7]" cannot :>: >be used to initialize an entity of type "char [6]" :>: > char s6[ 6 ] = "wombat"; :>: > :>: Is there any convenient way to perform this initialization? (I don't :>: consider either overallocating the array or enumerating individual :>: chars in a multiple initializer convenient.) ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
