Commit 5b8ce8f1 by Douglas Gregor Committed by Doug Gregor

re PR c++/2922 ([DR 197] two-stage lookup for unqualified function calls with…

re PR c++/2922 ([DR 197] two-stage lookup for unqualified function calls with type-dependent arguments)

2005-07-21  Douglas Gregor  <doug.gregor@gmail.com>

	PR c++/2922
	* g++.dg/lookup/two-stage5.C: New test from bug comments.

From-SVN: r102236
parent b8bcbe3a
2005-07-21 Douglas Gregor <doug.gregor@gmail.com>
PR c++/2922
* g++.dg/lookup/two-stage5.C: New test from bug comments.
2005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de> 2005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/15938 PR c++/15938
......
// { dg-do run }
extern "C" void abort ();
namespace N {
template <class T> T foo (T) { return T (); }
template <class T> T bar (T t) { return foo (t); }
}
struct S { S (int i = 0): i_ (i) { } int i_; };
namespace N {
/* template <> */ S foo (S) { return S (1); }
}
int main ()
{
if (1 == N::bar (S()).i_)
abort ();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment