This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12582] "declaration of `operator()' as non-function"
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Oct 2003 02:13:05 -0000
- Subject: [Bug c++/12582] "declaration of `operator()' as non-function"
- References: <20031012015759.12582.mckelvey@maskull.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12582
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[3.4 Regression] |"declaration of `operator()'
|"declaration of `operator()'|as non-function"
|as non-function" |
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-12 02:13 -------
Not a regression as it happens in 2.95.3 to 3.3 with a parse error.
The preprocessed source looks like this:
typedef float float_t;
namespace PM
{
typedef double float_t;
}
using namespace PM;
class functor_t
{
public:
int operator()(const float_t& argument1);
};
I do not know if the code is valid though, I do not have my standard infront of me now.