This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [DOC PATCH] Clarify docs about stmt exprs (PR c/51088)
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Marek Polacek <polacek at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 1 May 2014 17:21:29 +0000
- Subject: Re: [DOC PATCH] Clarify docs about stmt exprs (PR c/51088)
- Authentication-results: sourceware.org; auth=none
- References: <20140328143805 dot GA4275 at redhat dot com> <Pine dot LNX dot 4 dot 64 dot 1403281442260 dot 6067 at digraph dot polyomino dot org dot uk> <20140408162322 dot GA11972 at redhat dot com>
On Tue, 8 Apr 2014, Marek Polacek wrote:
> This patch doesn't catch cases like ({ A:0; }); &&A;, in that case the
> behavior is just undefined.
Those cases can produce link failures just like the cases where the
address is taken before the statement expression, so I think they need
errors as well.
int
main ()
{
1 || ({ A: 0; });
void *L[] = { &&A };
}
--
Joseph S. Myers
joseph@codesourcery.com