[Bug c++/12582] "declaration of `operator()' as non-function"

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Oct 12 02:13:00 GMT 2003


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.



More information about the Gcc-bugs mailing list