[Bug analyzer/94689] New: arrays of functions are not meaningful

pmatos at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 21 12:24:28 GMT 2020


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

            Bug ID: 94689
           Summary: arrays of functions are not meaningful
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: pmatos at gcc dot gnu.org
  Target Milestone: ---

With head of git from today (2020.04.21), gcc with -fanalyzer return non-zero
exit code for

///
*a;
b;
c() { d((void (*)())a + b); }

///


using the command line:
gcc -O2 -g -fanalyzer  -Wall   -I./.. -I./../include -I./../../rktio
-I../../rktio -pthread -I/usr/lib64/libffi/include   -DUSE_SENORA_GC    -c
foreign.i -o foreign.o

yet, if you remove the -fanalyzer flag it returns exit code 0.


More information about the Gcc-bugs mailing list