https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116395

            Bug ID: 116395
           Summary: -m32 forbids empty scalar initializer
           Product: gcc
           Version: 11.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: stsp at users dot sourceforge.net
  Target Milestone: ---

Created attachment 58941
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58941&action=edit
test case

$ gunzip a.c.gz
$ gcc -c a.c
[ no output ]
$ gcc -m32 -c a.c
doprnt.c: In function ‘_doprnt’:
doprnt.c:144:27: error: empty scalar initializer
  144 |   va_list to_be_printed = {};        /* argument to be printed if
numeric specifier are used */
      |                           ^
doprnt.c:144:27: note: (near initialization for ‘to_be_printed’)


I tried the trivial test-cases, but they pass.
But in this particular file any empty scalar initializers
are forbidden with -m32.

Reply via email to