| Anonymous | Login | Signup for a new account | 2013-05-24 08:09 CEST | ![]() |
| All Projects | FPC | Lazarus: Packages, Patches | Lazarus CCR | Mantis | fpGUI | fpcprojects: fpprofiler |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
| 0021810 | FPC | Compiler | public | 2012-04-20 04:49 | 2012-04-20 04:49 | ||||||||
| Reporter | Alexander S. Klenin | ||||||||||||
| Assigned To | |||||||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||||||
| Status | new | Resolution | open | ||||||||||
| Platform | OS | OS Version | |||||||||||
| Product Version | 2.7.1 | Product Build | |||||||||||
| Target Version | Fixed in Version | ||||||||||||
| Summary | 0021810: Class helper methods not not compile with 'inline' modifier | ||||||||||||
| Description | The following code type TC = class public function G: Integer; end; TH = class helper for TC public function G: Integer; inline; // Works without 'inline' property P: Integer read G; end; function TC.G: Integer; begin Result := 9; end; function TH.G: Integer; begin Result := inherited; end; var x: TC; begin x := TC.Create; Writeln(x.P); end. ...gives "Illegal expression" error both in 2.6.0 and trunk. | ||||||||||||
| Steps To Reproduce | See attached program. | ||||||||||||
| Tags | No tags attached. | ||||||||||||
| FPCOldBugId | |||||||||||||
| Fixed in Revision | |||||||||||||
| Attached Files | |||||||||||||
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2012-04-20 04:49 | Alexander S. Klenin | New Issue | |
| 2012-04-20 04:49 | Alexander S. Klenin | File Added: helper_class_inline.pp | |
| Main | My View | View Issues | Change Log | Roadmap |



