From 8ec1977ea6081a6dd0c2e5b8065c0cf14b5bd688 Mon Sep 17 00:00:00 2001 From: bernhardheld Date: Thu, 18 Jul 2002 10:59:07 +0000 Subject: [PATCH] fixed access to array of structures git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2040 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 3 +++ src/SDCCast.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 79c96134..b5f66ec3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2002-07-18 Bernhard Held + * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107 + 2002-06-22 Scott Dattalo * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced. - Rewrote the register banking algorithm. diff --git a/src/SDCCast.c b/src/SDCCast.c index 61c5655b..bb6614c9 100644 --- a/src/SDCCast.c +++ b/src/SDCCast.c @@ -2045,7 +2045,7 @@ decorateType (ast * tree) /*----------------------------*/ case PTR_OP: /* if not pointer to a structure */ - if (!IS_PTR (LTYPE (tree))) + if (!IS_PTR (LTYPE (tree)) && !IS_ARRAY (LTYPE(tree))) { werror (E_PTR_REQD); goto errorTreeReturn; -- 2.47.2