]> granicus.if.org Git - clang/commit
Add DefaultFunctionArrayConversion() to the indirection operator in Sema::ActOnUnaryOp().
authorSteve Naroff <snaroff@apple.com>
Tue, 18 Dec 2007 04:06:57 +0000 (04:06 +0000)
committerSteve Naroff <snaroff@apple.com>
Tue, 18 Dec 2007 04:06:57 +0000 (04:06 +0000)
commit1ca9b11b3114a618c360749a2f202fad29705bd9
tree4bbf77334d515ab36ac1e49f6c4cc7bd509c9ffb
parentb99a4a3630478946ca963d654e40a8d100890d64
Add DefaultFunctionArrayConversion() to the indirection operator in Sema::ActOnUnaryOp().

This fixes a bug Chris forwarded from Oliver Hunt...

typedef struct { char name[100]; } entry;
char f1(entry *e) { return *e->name; }

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45148 91177308-0d34-0410-b5e6-96231b3b80d8
Sema/SemaExpr.cpp