]> granicus.if.org Git - clang/commit
The callers of ParseStructDeclaration are not expecting it to
authorChris Lattner <sabre@nondot.org>
Mon, 29 Oct 2007 04:42:53 +0000 (04:42 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 29 Oct 2007 04:42:53 +0000 (04:42 +0000)
commitcd4b83cb4b4d69dbfa35ef97fe8ab88c0f2698a9
treed38fccc8f55bd24d6c471c3cf900376683628f6c
parent3da2db468d9a694535d62e7b96a010ce95c26fb6
The callers of ParseStructDeclaration are not expecting it to
eat the terminating ;.  Fix one place where it did, allowing this
to compile without error:

struct x {
 int a;
 union {
  int b;
  float c;
 };

 int d;
};

This reduces diagnostics on PR1750 from 33 to 27.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43437 91177308-0d34-0410-b5e6-96231b3b80d8
Parse/ParseDecl.cpp