Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Nils M Holm <news2009@t3x.org> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: sizeof((type)) is a constraint violation? |
| Date | 2012-03-08 06:15 +0000 |
| Organization | TARFU |
| Message-ID | <9rr14jFpl8U1@mid.individual.net> (permalink) |
| References | <jj7phr$ghu$1@dont-email.me> <9rpaohFc5sU1@mid.individual.net> <lnboo85e4n.fsf@nuthaus.mib.org> |
Keith Thompson <kst-u@mib.org> wrote: > But the "(int)" in "sizeof (int)" is not a cast operator; it's merely > part of the syntax of a unary-expression (C11 6.5.3): > > sizeof ( type-name ) Indeed. I thought that the parens belong to a cast operator that form an operand of 'sizeof', but they are just part of the 'sizeof' syntax. > Strictly speaking, then "((int))" in "sizeof ((int))" is not anything at > all; [...] Exactly my point. -- Nils M Holm < n m h @ t 3 x . o r g > www.t3x.org
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
sizeof((type)) is a constraint violation? Noob <root@127.0.0.1> - 2012-03-07 14:58 +0100
Re: sizeof((type)) is a constraint violation? Nils M Holm <news2009@t3x.org> - 2012-03-07 14:47 +0000
Re: sizeof((type)) is a constraint violation? Keith Thompson <kst-u@mib.org> - 2012-03-07 12:51 -0800
Re: sizeof((type)) is a constraint violation? Nils M Holm <news2009@t3x.org> - 2012-03-08 06:15 +0000
Re: sizeof((type)) is a constraint violation? China Blue Water Navy <chine.bleu@yahoo.com> - 2012-03-07 07:11 -0800
Re: sizeof((type)) is a constraint violation? Keith Thompson <kst-u@mib.org> - 2012-03-07 12:44 -0800
csiph-web