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++/12427] Compiler misses error, gets lost. big time


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-09-27 05:40 -------
Not a bug:
        Recurrence<std::bidirectional_iterator_tag, int, Inc, Dec> r3(Inc(),
                Dec());

declares a function which takes the function pointer Inc (*)() and Dec (*) () as arguments 
and returns a Recurrence<std::bidirectional_iterator_tag, int, Inc, Dec>.
As the warning says:
Recurrence<std::bidirectional_iterator_tag, int, Inc, Dec> r3(Inc (*)(), Dec (*)()).


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