re PR c++/2294 (using declaration confusion)
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Sun, 7 Dec 2003 15:23:31 +0000 (15:23 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Sun, 7 Dec 2003 15:23:31 +0000 (15:23 +0000)
commit9f6a794d626563787e7ed032ae56c005c2a50d6c
treecceed65ec08f95207104d09da9520944043f5c66
parent1f866b457dcc4257bb7c79b0eae9403faf9a33ff
re PR c++/2294 (using declaration confusion)

PR c++/2294
* name-lookup.c (push_overloaded_decl): Always construct an
OVERLOAD unless the declaration is a built-in.
(set_namespace_binding): While binding OVERLOADs with only one
declaration, we still need to call supplement_binding.
* init.c (build_new_1): Deal with an OVERLOAD set when
looking up for _Jv_AllocObject.
* except.c (build_throw): Likewise for _Jv_Throw.

From-SVN: r74394
gcc/cp/ChangeLog
gcc/cp/except.c
gcc/cp/init.c
gcc/cp/name-lookup.c