]> granicus.if.org Git - clang/commit
Ensure that default arguments are handled correctly in sub scopes. For example:
authorJames Molloy <james.molloy@arm.com>
Tue, 13 Mar 2012 08:55:35 +0000 (08:55 +0000)
committerJames Molloy <james.molloy@arm.com>
Tue, 13 Mar 2012 08:55:35 +0000 (08:55 +0000)
commit9cda03ff7fc40b727d0cc44b1702dbae09d63f42
treec6810bc9b1c12832eb2e96551581f15c0fb1274f
parente37f484ab9a65ce4e5f90adcfa20add4215e0783
Ensure that default arguments are handled correctly in sub scopes. For example:

void f () {
  int g (int a, int b=4);
  {
    int g(int a, int b=5);
  }
}

should compile.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152621 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
test/CodeGenCXX/default-arguments.cpp
test/SemaCXX/default1.cpp