diff options
author | Mark Mitchell <mark@codesourcery.com> | 2001-11-30 03:14:56 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2001-11-30 03:14:56 +0000 |
commit | 998979e6dc20eb1b72f6f9a1a818ae28d07d8721 (patch) | |
tree | 00ba049e16648fa9a3aa0326b1882987e7088f80 /gcc/testsuite | |
parent | fc6e87b33f1c961ded126986990048eb7120557a (diff) | |
download | gcc-998979e6dc20eb1b72f6f9a1a818ae28d07d8721.zip gcc-998979e6dc20eb1b72f6f9a1a818ae28d07d8721.tar.gz gcc-998979e6dc20eb1b72f6f9a1a818ae28d07d8721.tar.bz2 |
re PR c++/3048 (Lookup problem (gcc 2.95 regression))
2001-11-29 Mark Mitchell <mark@codesourcery.com>
PR c++/3048
* cp-tree.h (ovl_member): Remove.
* decl2.c (merge_functions): Handle extern "C" functions
specially.
* tree.c (ovl_member): Remove.
From-SVN: r47474
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/externC5.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/externC5.C b/gcc/testsuite/g++.old-deja/g++.other/externC5.C new file mode 100644 index 0000000..aadbc5a --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/externC5.C @@ -0,0 +1,19 @@ +// Build don't link: +// Origin: schmid@snake.iap.physik.tu-darmstadt.de + +extern "C" int rand (void) throw (); + +namespace std +{ +extern "C" int rand(void) throw(); +template <class T> void f(T a) {} +} + +using namespace std; + +int main() +{ + f(rand); + f(std::rand); + f(::rand); +} |