[cfe-dev] c99 Designated Initializers work in clang++

Andrey Valyaev dron at osrc.info
Sat Jan 15 14:37:24 PST 2011


struct foo {
        int a;
        int b;
};

const foo f = { .a = 10, .b = 11 };

Should not be work.
It cause error in gcc.
But compiled without warnings in clang++ 2.8

-- 
	http://mdf-i.blogspot.com
	Andrey Valyaev



More information about the cfe-dev mailing list