OSDN Git Service

Fix PR c++/41020
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Oct 2009 14:40:16 +0000 (14:40 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Oct 2009 14:40:16 +0000 (14:40 +0000)
commite3076b3da2d1c7cebe6403037532d3d7ad0e74ea
tree42b95bdcca80aad4970085d2f4e91ef0cdb1a73d
parent7814d4186a9b0b10e6e62133d5210cb2589de1de
Fix PR c++/41020

gcc/cp/ChangeLog:

PR c++/41020
* decl.c (decls_match): Use DECL_IS_BUILTIN instead of
DECL_BUILT_IN.

gcc/testsuite/ChangeLog:
PR c++/41020
* g++.dg/lookup/extern-c-redecl2.C: New test.
* g++.dg/lookup/extern-c-redecl3.C: Likewise.
* g++.dg/lookup/extern-c-redecl4.C: Likewise.
* g++.dg/lookup/extern-c-redecl5.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153552 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/extern-c-redecl2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lookup/extern-c-redecl3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lookup/extern-c-redecl4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lookup/extern-c-redecl5.C [new file with mode: 0644]