Log On
Embarcadero Home
Watch, Follow, &
Connect with Us
Share This
QualityCentral
Communities
Articles
Blogs
Resources
Downloads
Help
QualityCentral
Delphi-BCB
Compiler
Delphi
Anonymous Methods
BASM
Code Generation/Optimization
Error Recovery
Errors - Warnings
Exceptions
Execution
Finalization
Generics
Header Generation
Interaction with UI
Interfaces
Language
Linker
Make Logic
Memory Manager
OBJ Generation
OBJ Support
Other Compiler
Packages
RTTI
Custom attributes
String Resources
TD Debug Info
Thread Local Storage
Version resilience
You are not logged in.
Help
Print
Public Report
Report From:
Delphi-BCB/Compiler/Delphi/RTTI
[ Add a report in this area ]
Report #:
95340
Status:
Open
Dynamic array of static array misses typeinfo
Project:
Delphi
Build #:
15.0.3953.35171
Version:
15.1
Submitted By:
Stefan Glienke
Report Type:
Basic functionality failure
Date Reported:
6/18/2011 7:20:53 PM
Severity:
Serious / Highly visible problem
Last Updated:
3/20/2012 2:24:39 AM
Platform:
All platforms
Internal Tracking #:
283949
Resolution:
None
(Resolution Comments)
Resolved in Build:
:
None
Duplicate of:
None
Voting and Rating
Overall Rating:
No Ratings Yet
0.00 out of 5
Total Votes:
None
Description
---
if TRttiDynamicArrayType(t).ElementType <> nil then // <- expected to be assigned but actually it's nil
---
see steps
Steps to Reproduce:
unit TestCase;
interface
type
TDynMatrixA = array of array[0..1] of Integer;
procedure Test;
implementation
uses
Rtti,
TypInfo;
procedure Test;
var
a: TDynMatrixA;
c: TRttiContext;
t: TRttiType;
begin
t := c.GetType(TypeInfo(TDynMatrixA));
if t is TRttiDynamicArrayType then
begin
if TRttiDynamicArrayType(t).ElementType <> nil then // <- expected to be assigned but actually it's nil
Writeln(TRttiDynamicArrayType(t).ElementType.Name);
end
else if t is TRttiArrayType then
begin
if TRttiArrayType(t).ElementType <> nil then
Writeln(TRttiArrayType(t).ElementType.Name);
end;
end;
end.
Workarounds
None
Attachment
None
Comments
None
View Your Reports
Search
Server Response from: ETNACODE01
Developer Tools
Blackfish SQL
C++Builder
Delphi
FireMonkey
Prism
InterBase
JBuilder
J Optimizer
HTML5 Builder
3rdRail & TurboRuby
Database Tools
Change Manager
DBArtisan
DB Optimizer
ER/Studio
Performance Center
Rapid SQL
Technical Articles
Tutorials
White Papers
Press Releases
Newsletters
Add Content (GetPublished)
Audio
Audio & Video
Video
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Tags
Technology Partners
Downloads
Free Trials
Registered User Downloads
Beta Programs
Add Content (GetPublished)
Articles
Blogs
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Member Services
About
Connect with Us