GCC typeof Quirk
A quick, slightly off-topic note: Although lvalue conversion and array
decay are right next to each other in the Standard, GCC's 'typeof'
keyword seems to treat them differently.
const sometype foo1;
/* bar1 is 'const sometype' */
typeof (foo1) bar1;
/* baz1 is 'const sometype' instead of 'sometype' */
typeof (0, foo1) baz1;
/* bar2 is 'sometype' */
typeof (foo2) bar2;
/* baz2 is 'sometype *' */
typeof (0, foo2) baz2;
- Shao Miller
"Thank you for the kind words; those are the kind of words I like to hear.
Cheerily," -- Richard Harter
|All times are GMT. The time now is 11:41 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.