This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/24702] Koenig found functoid ref, but "cannot be used as a function"



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-11-07 13:36 -------
Actually IIRC Koenig lookup only finds functions and not variables.  If that is
the case we have two issues here.  One is we accept invalid and another is that
error message is wrong.

Note ICC rejects this:
t.cc(26): error: identifier "dummyFunct" is undefined
    std::cout<<"dummyFunct(d) = "<<dummyFunct(d)<<std::endl; // fails with 3.4
                                   ^

t.cc(28): error: identifier "myDummyFunct" is undefined
    std::cout<<"myDummyFunct(d) = "<<myDummyFunct(d)<<std::endl;
                                     ^

t.cc(29): error: identifier "mymyDummyFunct" is undefined
    std::cout<<"mymyDummyFunct(d) = "<<mymyDummyFunct(d)<<std::endl; // fails
                                       ^


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24702


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]