| Related articles |
|---|
| Writing a C Compiler: lvalues andre.nho@gmail.com (=?ISO-8859-1?Q?Andr=E9_Wagner?=) (2010-05-08) |
| Re: Writing a C Compiler: lvalues ben.usenet@bsb.me.uk (Ben Bacarisse) (2010-05-09) |
| Re: Writing a C Compiler: lvalues bartc@freeuk.com (bart.c) (2010-05-09) |
| Re: Writing a C Compiler: lvalues tom@iahu.ca (Tom St Denis) (2010-05-09) |
| Re: Writing a C Compiler: lvalues kst-u@mib.org (Keith Thompson) (2010-05-09) |
| Re: Writing a C Compiler: lvalues esosman@ieee.org (Eric Sosman) (2010-05-09) |
| Re: Writing a C Compiler: lvalues stargazer3p14@gmail.com (Stargazer) (2010-05-10) |
| Re: Writing a C Compiler: lvalues marc@lithia.nl (Marc van Lieshout) (2010-05-16) |
| Re: Writing a C Compiler: lvalues esosman@ieee.org (Eric Sosman) (2010-05-17) |
| Re: Writing a C Compiler: lvalues kst-u@mib.org (Keith Thompson) (2010-05-17) |
| Re: Writing a C Compiler: lvalues kst-u@mib.org (Keith Thompson) (2010-05-19) |
| Re: Writing a C Compiler: lvalues bartc@freeuk.com (bart.c) (2010-05-19) |
| [5 later articles] |
| From: | Eric Sosman <esosman@ieee.org> |
| Newsgroups: | comp.lang.c,comp.compilers |
| Date: | Sun, 09 May 2010 17:09:42 -0400 |
| Organization: | A noiseless patient Spider |
| References: | 10-05-036 10-05-041 |
| Keywords: | C, code |
| Posted-Date: | 09 May 2010 17:29:53 EDT |
On 5/9/2010 1:25 PM, Tom St Denis wrote:
>
> ++ requires an object that an address can be taken of attached to
> either the right or left which forms part of a larger expression.
Yes to "object," no to "address can be taken." Examples:
register int obj1 = 42;
struct { int obj2 : 7; } s = { 42 };
++obj1; // okay
s.obj2++; // okay
&obj1; // constraint violation
&s.obj2; // constraint violation
--
Eric Sosman
Return to the
comp.compilers page.
Search the
comp.compilers archives again.