Menu ▾ ▴

#1102 PIC14: nonexisting struct initialization

closed-fixed
PIC14
5
2026-10-20
2006-04-22
No

const struct test x = {0};

will compile giving only some misleading warnings, no
errors.

I compile using
sdcc -mpic14 -p16c745 -c --std-c99

sdcc --version
gives
SDCC :
mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08
2.5.6 #1246 (Apr 12 2006) (UNIX)

Discussion

  • Maarten Brock

    Maarten Brock - 2010-07-28
    • labels: --> pic14 target
     
  • Maarten Brock

    Maarten Brock - 2010-07-28

    This should now be fixed for all but pic14 targets.

     
  • Maarten Brock

    Maarten Brock - 2011-09-18
    • summary: nonexisting struct initialization --> PIC14: nonexisting struct initialization
     
  • Philipp Klaus Krause

    • Category: --> PIC14
     
  • Christopher Bazley

    • assigned_to: Christopher Bazley
     
  • Christopher Bazley

    Original PIC14 incomplete-structure initialiser now gets error 66, rather than only misleading warnings.

    https://godbolt.org/z/KTxMfbzj5

     
  • Christopher Bazley

    • status: open --> closed-fixed
     
  • Christopher Bazley

    Added regression test in [r17046]

     

    Related

    Commit: [r17046]


Log in to post a comment.