Commit c9982a3f by Paolo Carlini Committed by Paolo Carlini

re PR c++/19966 (Misleading message "must take exactly one argument")

2005-03-17  Paolo Carlini  <pcarlini@suse.de>

	PR c++/19966
	* g++.dg/overload/operator2.C: New test.

From-SVN: r96610
parent f2a79152
2005-03-17 Paolo Carlini <pcarlini@suse.de>
PR c++/19966
* g++.dg/overload/operator2.C: New test.
2005-03-16 Francois-Xavier Coudert <coudert@clipper.ens.fr> 2005-03-16 Francois-Xavier Coudert <coudert@clipper.ens.fr>
PR libfortran/20257 PR libfortran/20257
......
// PR c++/19966
// { dg-do compile }
struct A
{
static operator int(); // { dg-error "must be a nonstatic" }
};
struct B
{
static int operator*(); // { dg-error "must be either" }
};
static operator int(); // { dg-error "must be a nonstatic" }
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