[Bug c++/12427] Compiler misses error, gets lost. big time

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Sep 27 06:36: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=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 (*)()).



More information about the Gcc-bugs mailing list