http://llvm.org/bugs/show_bug.cgi?id=11486
Anton Korobeynikov <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution| |WORKSFORME --- Comment #1 from Anton Korobeynikov <[email protected]> 2011-12-06 01:25:11 CST --- Works for me on ToT / 3.0: $ clang -c 2.c 2.c:1:32: error: field designator 'bar' does not refer to any field in type 'union <anonymous at 2.c:1:1>' union { struct { }; } foo = { .bar = 0 }; ^ 2.c:2:36: error: field designator 'bar' does not refer to any field in type 'union <anonymous at 2.c:2:10>' int x = (union { struct { }; }) { .bar = 0 }; ^ 2 errors generated. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
