| Anonymous | Login | Signup for a new account | 2013-06-20 03:37 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 | ||||
| 0022277 | FPC | Compiler | public | 2012-06-16 12:04 | 2012-06-24 19:19 | ||||
| Reporter | Alexander S. Klenin | ||||||||
| Assigned To | Jonas Maebe | ||||||||
| Priority | normal | Severity | feature | Reproducibility | N/A | ||||
| Status | resolved | Resolution | won't fix | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | Product Build | ||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0022277: Initialize variables with record-type constants | ||||||||
| Description | In the following code: type TPoint = record x, y: Integer; end; const CP: TPoint = (x: 1; y: 2); var V1: TPoint = (x: 1; y: 2); V2: TPoint = CP; begin end. the final initialization currently fails. IMO allowing it would be an improvement. | ||||||||
| Tags | No tags attached. | ||||||||
| FPCOldBugId | 0 | ||||||||
| Fixed in Revision | |||||||||
| Attached Files | |||||||||
Relationships |
||||||||||||||||
|
||||||||||||||||
Notes |
|
|
(0060665) Jonas Maebe (manager) 2012-06-24 19:19 |
The semantics of a typed constant do not allow such expressions, and there is no way to define a symbolic record constant in Pascal. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2012-06-16 12:04 | Alexander S. Klenin | New Issue | |
| 2012-06-17 15:54 | Marco van de Voort | FPCOldBugId | => 0 |
| 2012-06-17 15:54 | Marco van de Voort | Category | FCL => Compiler |
| 2012-06-24 19:06 | Jonas Maebe | Relationship added | duplicate of 0013256 |
| 2012-06-24 19:15 | Jonas Maebe | Relationship added | related to 0020823 |
| 2012-06-24 19:15 | Jonas Maebe | Relationship added | related to 0010828 |
| 2012-06-24 19:19 | Jonas Maebe | Status | new => resolved |
| 2012-06-24 19:19 | Jonas Maebe | Resolution | open => won't fix |
| 2012-06-24 19:19 | Jonas Maebe | Assigned To | => Jonas Maebe |
| 2012-06-24 19:19 | Jonas Maebe | Note Added: 0060665 | |
| Main | My View | View Issues | Change Log | Roadmap |



