]> granicus.if.org Git - clang/commit
Fix the following bug submitted by Justin Handville.
authorSteve Naroff <snaroff@apple.com>
Mon, 10 Sep 2007 22:17:00 +0000 (22:17 +0000)
committerSteve Naroff <snaroff@apple.com>
Mon, 10 Sep 2007 22:17:00 +0000 (22:17 +0000)
commit08d51393bfa55a0b7d99db2b2a59f1df7d3f4f68
treea10de488243b3352ccec6fa7dba2e68113b32c35
parent2bd42fadafddc8acf744b57a970bdc96a077c617
Fix the following bug submitted by Justin Handville.

int main(int argc, char* argv[])
{
  return 0;
}

After speaking briefly with Chris, we decided this should be a front-end fix.

The fix...have Sema::GetTypeForDeclarator() do the default function/array conversion, as
I outlined in the 9/9 email on this topic.

Since this conversion is done before Sema::ParseParamDeclarator(), I thought I could
remove the conversion from Sema::ParseParamDeclarator(). Unfortunately, this didn't work.
The conversion apparently needs to be done in both places (which doesn't make sense to me).

Will investigate.

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