[Bug c++/13657] Error message incorrectly describes return type as argument type

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jan 12 17:44:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-12 17:43 -------
3.3.x gives:
pr13657.cc: In member function `int (* C::f())()':
pr13657.cc:2: error: no matches converting function `bar' to type `int (*)()'
pr13657.cc:1: error: candidates are: int C::bar()
I wound not call this a regression but I can confirm that the error message that 3.4 gives is a little 
confusing.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-12 17:44:00
               date|                            |


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



More information about the Gcc-bugs mailing list