https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94853
Bug ID: 94853 Summary: [10 regression] excess errors in gfortran.dg/analyzer/pr93993.f90 since r10-8012 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: seurer at linux dot vnet.ibm.com Target Milestone: --- commit g:78b9783774bfd3540f38f5b1e3c7fc9f719653d7, r10-8012 spawn -ignore SIGHUP /home3/seurer/gcc/git/build/gcc-test2/gcc/testsuite/gfortran/../../gfortran -B/home3/seurer/gcc/git/build/gcc-test2/gcc/testsuite/gfortran/../../ -B/home3/seurer/gcc/git/build/gcc-test2/powerpc64le-unknown-linux-gnu/./libgfortran/ /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90 -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -fdiagnostics-urls=never -O -fanalyzer -fdiagnostics-path-format=separate-events -Wanalyzer-too-complex -fanalyzer-call-summaries -S -o pr93993.s /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:21:0: Warning: leak of 'tm' [CWE-401] [-Wanalyzer-malloc-leak] /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:26:0: note: (1) entry to 'main' /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:26:0: note: (2) calling 'a5' from 'main' /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:25:0: note: (3) entry to 'a5' /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:32:0: note: (4) calling 'hv' from 'a5' /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:15:0: note: (5) entry to 'hv' /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:19:0: note: (6) following 'false' branch... /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:19:0: note: (7) ...to here /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:19:0: note: (8) following 'false' branch... /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:19:0: note: (9) ...to here /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:21:0: note: (10) 'tm' leaks here /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:33:0: Warning: leak of '(struct Pdtet_8 *) qb' [CWE-401] [-Wanalyzer-malloc-leak] /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:26:0: note: (1) entry to 'main' /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:26:0: note: (2) calling 'a5' from 'main' /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:25:0: note: (3) entry to 'a5' /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:32:0: note: (4) calling 'hv' from 'a5' /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:15:0: note: (5) entry to 'hv' /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:19:0: note: (6) following 'false' branch... /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:19:0: note: (7) ...to here /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:19:0: note: (8) allocated here /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:19:0: note: (9) allocated here /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:19:0: note: (10) state of '(struct Pdtet_8 *) qb': 'start' -> 'nonnull' (origin: NULL) /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:19:0: note: (11) following 'false' branch... /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:19:0: note: (12) ...to here /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:19:0: note: (13) state of '(struct Pdtet_8 *) qb': 'start' -> 'nonnull' (origin: NULL) /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:21:0: note: (14) state of '(struct Pdtet_8 *) qb': 'start' -> 'nonnull' (origin: NULL) /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:32:0: note: (15) returning to 'a5' from 'hv' f951: note: (16) state of '(struct Pdtet_8 *) qb': 'start' -> 'nonnull' (origin: NULL) /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:33:0: note: (17) state of '(struct Pdtet_8 *) qb': 'start' -> 'nonnull' (origin: NULL) /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:33:0: note: (18) state of '(struct Pdtet_8 *) qb': 'start' -> 'nonnull' (origin: NULL) /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:33:0: note: (19) '(struct Pdtet_8 *) qb' leaks here; was allocated at (9) PASS: gfortran.dg/analyzer/pr93993.f90 -O (test for bogus messages, line 19) PASS: gfortran.dg/analyzer/pr93993.f90 -O (test for warnings, line 33) Executing on host: /home3/seurer/gcc/git/build/gcc-test2/gcc/testsuite/gfortran/../../gfortran -B/home3/seurer/gcc/git/build/gcc-test2/gcc/testsuite/gfortran/../../ -B/home3/seurer/gcc/git/build/gcc-test2/powerpc64le-unknown-linux-gnu/./libgfortran/ exceptions_enabled44136.c -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -fdiagnostics-urls=never -S -o exceptions_enabled44136.s (timeout = 300) spawn -ignore SIGHUP /home3/seurer/gcc/git/build/gcc-test2/gcc/testsuite/gfortran/../../gfortran -B/home3/seurer/gcc/git/build/gcc-test2/gcc/testsuite/gfortran/../../ -B/home3/seurer/gcc/git/build/gcc-test2/powerpc64le-unknown-linux-gnu/./libgfortran/ exceptions_enabled44136.c -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -fdiagnostics-urls=never -S -o exceptions_enabled44136.s exceptions_enabled44136.c: In function 'foo': exceptions_enabled44136.c:4:7: error: 'throw' undeclared (first use in this function) exceptions_enabled44136.c:4:7: note: each undeclared identifier is reported only once for each function it appears in exceptions_enabled44136.c:4:12: error: expected ';' before numeric constant compiler exited with status 1 FAIL: gfortran.dg/analyzer/pr93993.f90 -O (test for excess errors) Excess errors: /home/seurer/gcc/git/gcc-test2/gcc/testsuite/gfortran.dg/analyzer/pr93993.f90:21:0: Warning: leak of 'tm' [CWE-401] [-Wanalyzer-malloc-leak]