<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The attached trivial patch fixes PR <a href="http://llvm.org/bugs/show_bug.cgi?id=11847">11847</a>. From the PR:<div><br></div><div><span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: small; "><pre class="bz_comment_text" id="comment_text_0" style="font-size: medium; font-family: monospace; white-space: pre-wrap; width: 50em; ">The following invalid program crashes clang:

jason$ cat test.c
typedef struct { UNKNOWN c; } A;
typedef struct { A; } B;

jason$ clang -target i386-pc-win32 test.c
test.c:1:18: error: unknown type name 'UNKNOWN'
typedef struct { UNKNOWN c; } A;
                 ^
test.c:2:18: warning: anonymous structs are a Microsoft extension [-Wmicrosoft]
typedef struct { A; } B;
                 ^
Stack dump:
0.    Program arguments: /Users/jason/Sources/llvm/build/release/bin/clang-3.1
-cc1 -triple i386-pc-win32 -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -main-file-name test.c -mrelocation-model static
-mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu pentium4
-momit-leaf-frame-pointer -resource-dir
/Users/jason/Sources/llvm/build/release/bin/../lib/clang/3.1
-fmodule-cache-path...</pre></span><div>Please apply.</div></div><div><br></div><div>Jason</div><div><br></div><div></div></body></html>