This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [wwwdocs] Add a note about in-class initialization of static data member
- From: Marek Polacek <polacek at redhat dot com>
- To: Martin Sebor <msebor at gmail dot com>
- Cc: Jonathan Wakely <jwakely at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 11 Feb 2016 21:43:06 +0100
- Subject: Re: [wwwdocs] Add a note about in-class initialization of static data member
- Authentication-results: sourceware.org; auth=none
- References: <20160211142000 dot GB3163 at redhat dot com> <20160211152613 dot GR8441 at redhat dot com> <20160211163958 dot GC3163 at redhat dot com> <56BCC03F dot 5000904 at gmail dot com> <20160211175933 dot GE3163 at redhat dot com> <56BCD6D1 dot 5050101 at gmail dot com> <20160211185114 dot GG3163 at redhat dot com> <56BCF0E1 dot 10905 at gmail dot com>
On Thu, Feb 11, 2016 at 01:36:49PM -0700, Martin Sebor wrote:
> >>The flexible array addition looks great to me. Thank you!
> >
> >Great. I'll commit the patch.
>
> Actually, there is one other thing that might be wort mentioning
> about flexible array members.
>
> The type and mangling of flexible array members has changed. While
> in GCC 5 and prior the type of a flexible array member is an array
> of zero elements (a GCC extension), in 6 it is that of an array of
> an unspecified bound (i.e., T[] as opposed to T[0]). This is
> a silent ABI change with no -fabi-version/-Wabi option.
Aha. I think you're better-suited to document this than I am.
Marek