玩一把gcc的Designated Initializers: 测试结果:结构体内的变量必须按照声明的顺序初始化,并且不能遗漏,否则会报“sorry, unimplemented:non-trivial designated initializers not supported”错误。
参考
C99标准
Bug 55606 - sorry, unimplemented: non-trivial designated initializers not supported
C++ - g++: sorry, unimplemented: non-trivial designated initializers not supported - SysTutorials QA
http://stackoverflow.com/questions/31215971/non-trivial-designated-initializers-not-supported
Non-trivial designated initializers not supported · Issue #8 · couchbaselabs/cbforest · GitHub