#1594 PIC14: fails to initialize member of the structure by litera

open
nobody
PIC14
5
2013-07-16
2009-12-23
kazu1108
No

2typedef struct
3{
4 char d;
5} st3;
6
7typedef struct
8{
9 char c;
10 char d;
11 short e;
12 short f;
13} st2;
14
15typedef struct
16{
17 short a;
18 short b;
19 union {
20 st2 s2;
21 st3 s3;
22 } u;
23} st;
24
25st _s;

initial _s.u.st2.c by litteral zero.
However, member d and e are cleared.

SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.9.4 #5573 (Dec 1 2009) (CYGWIN)

Discussion

  • kazu1108

    kazu1108 - 2009-12-23

    test code

     
  • Maarten Brock

    Maarten Brock - 2011-09-18
    • summary: It fails to initialize the member of the structure by litera --> PIC14: fails to initialize member of the structure by litera
     
  • Philipp Klaus Krause

    • Category: --> PIC14
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks