stgructure initialization stype shows as error

Alexander Dymo dymo at ukrpost.ua
Fri Aug 29 10:03:39 UTC 2008


On Friday 29 August 2008 10:57:43 dizzy wrote:
> First of all there is no valid syntax like that with "a:". It may be some
> compiler extension. The valid C99 syntax to initialize struct/union members
> being named is using ".a" instead in his code example. Also, because this
> is C99 it's not C++03.  Maybe C++0x will have it tho I fail to find that
> information in the WG21 papers.

I've looked into the '03 standard - there's no such initialization in it. "g++ 
--pedantic" will also complain.





More information about the KDevelop-devel mailing list