------- 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 6628 -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- BugsThisDependsOn| |6628 Keywords|wrong-code |accepts-invalid Known to fail|4.0.3 |4.0.3 2.95.3 3.0.4 4.1.0 | |4.2.0 Known to work|3.4.5 4.1.0 | Summary|[4.0 Regression] wrong code |accepts invalid function |when returning a function |pointer type return |pointer | Target Milestone|4.0.3 |--- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26143