[Bug c++/26143] accepts invalid function pointer type return

2013-06-16 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26143 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|NEW |RESOLVED

[Bug c++/26143] accepts invalid function pointer type return

2006-02-06 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-02-07 02:36 --- Actually I looked at this again and this is invalid code and we should reject it (fixing where the const is fixes the wrong code): struct DebugStringHolder { int (*get()) () const; }; -- Related to PR