Parsing record/class/object fields does not switch the block type [Patch]
Original Reporter info from Mantis: Blaise
-
Reporter name: Blaise.ru
Original Reporter info from Mantis: Blaise
- Reporter name: Blaise.ru
Description:
When the parser begins to process a field section of a structure, the global compiler variable that indicates the block type is not updated and it still holds the type of the preceding block, leading to strange compilation errors.
Steps to reproduce:
{$mode Delphi}
type C = class
type T = integer;
var V: ^T;
end;
begin // BOGUS: Error: Forward type not resolved "T"
end.
Mantis conversion info:
- Mantis ID: 18620
- Build: r16819
- Version: 2.5.1
- Fixed in version: 2.6.0
- Fixed in revision: 16832 (#e77a9051)