Commit 1c59130c by Giovanni Bajo

re PR c++/10126 (ICE in convert_nontype_argument on using overload resolution in template args)

	PR c++/10126
	* g++.dg/template/ptrmem8.C: New test.

From-SVN: r74185
parent 59e7a901
2003-12-02 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/10126
* g++.dg/template/ptrmem8.C: New test.
2003-12-02 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/12573
* g++.dg/template/dependent-expr3.C: New test.
......
// { dg-do compile }
// Origin: <marco dot franzen at bigfoot dot com>
// PR c++/10126: Handle ptmf default conversions while matching a template
// argument
struct B
{
int I () const;
int I ();
};
struct D : B {};
template <int (D::*fun)() const> int Get();
int main ()
{
Get<&B::I>(); // { dg-error "no matching function" }
Get<&D::I>(); // { dg-error "no matching function" }
}
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