Duplicate tags accepted in variant type definitions
Summary
System Information
- Operating system: O/S independent
- Processor architecture: architecture independent
- **Compiler version: v3.0.4 and later **
- Device: all
Steps to reproduce
declare a variant record using the same tag for each variant
Example Project
type
SomeRecord = record
case Integer of
1: (a: Integer);
1: (b: char);
1: (c: double);
1: (d: boolean);
end;
What is the current bug behavior?
the compiler accepts a questionable definition.
What is the expected (correct) behavior?
the compiler should refuse duplicate tag values