Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 57ac59cea3879ea41f0ae8b821ff0839 > files > 25

lib64HX-devel-3.16-2.mga4.x86_64.rpm

/*
	Fails to compile with gcc-4.7, 4.8 with the error message
	"const_cast.c:5:13: error: dereferencing pointer to incomplete type".
	But __typeof__(*f) is just a fancy way of writing "struct undisclosed"
	and should be permitted. (Request for enhancement)
*/
struct undisclosed;
int main(void) {
	const struct undisclosed *f = 0;
	__typeof__(*f) *g = 0;
	return 0;
}