re PR c++/13699 (Extern "C" routine in different namespaces accepted with different...
authorDodji Seketeli <dseketel@redhat.com>
Wed, 16 Jul 2008 23:44:02 +0000 (23:44 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Wed, 16 Jul 2008 23:44:02 +0000 (01:44 +0200)
commitecba6c56dbf5914ef24bcce66db3c4cffcd30e22
treeaa1a421373609e8d5b06caf8be49f16a831f2782
parent7386e3ee260414735222ea6559f3bb94ecd011f9
re PR c++/13699 (Extern "C" routine in different namespaces accepted with different exception signature)

2008-07-16  Dodji Seketeli  <dseketel@redhat.com>

PR c++/13699
* gcc/cp/name-lookup.c (lookup_extern_c_fun_binding_in_all_ns):
New function.
(pushdecl_maybe_friend): Check if a redeclaration of extern C function
complies with exception specification constraints.

From-SVN: r137904
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/extern-c-redecl.C [new file with mode: 0644]