public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/96395] New: gcc.dg/analyzer/explode-2.c fails when compiled as C++
@ 2020-07-31  2:07 sandra at gcc dot gnu.org
  2020-07-31 14:04 ` [Bug analyzer/96395] " dmalcolm at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: sandra at gcc dot gnu.org @ 2020-07-31  2:07 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96395
           Summary: gcc.dg/analyzer/explode-2.c fails when compiled as C++
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: sandra at gcc dot gnu.org
  Target Milestone: ---

gcc.dg/analyzer/explode-2.c triggers a -Wanalyzer-too-complex diagnostic when
compiled as C++, but not as C:

$ x86_64-linux-gnu-g++ /path/to/gcc/testsuite/gcc.dg/analyzer/explode-2.c 
-fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers
-fdiagnostics-color=never  -fdiagnostics-urls=never   -fanalyzer
-fdiagnostics-path-format=separate-events -Wanalyzer-too-complex
-fanalyzer-call-summaries --param analyzer-max-enodes-per-program-point=200
--param analyzer-bb-explosion-factor=50 -S 
cc1plus: warning: analysis bailed out early (701 'after-snode' enodes; 2762
enodes) [-Wanalyzer-too-complex]
...

Increasing both of the params specified in the test case by a factor of 5
didn't seem to help.

I ran into this problem in connection with my patches to unify loop
representations in the C and C++ front ends

https://gcc.gnu.org/pipermail/gcc-patches/2020-March/541954.html

but it can be reproduced separately without those patches just by compiling
with g++ instead of gcc.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-05-03 13:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-31  2:07 [Bug analyzer/96395] New: gcc.dg/analyzer/explode-2.c fails when compiled as C++ sandra at gcc dot gnu.org
2020-07-31 14:04 ` [Bug analyzer/96395] " dmalcolm at gcc dot gnu.org
2020-07-31 18:10 ` sandra at gcc dot gnu.org
2021-02-12 21:26 ` dmalcolm at gcc dot gnu.org
2021-02-12 21:33 ` dmalcolm at gcc dot gnu.org
2021-03-19 18:56 ` [Bug analyzer/96395] Generalize gcc.dg/analyzer tests to be run with both C and C++ dmalcolm at gcc dot gnu.org
2023-08-27 16:24 ` cvs-commit at gcc dot gnu.org
2023-09-09 16:26 ` cvs-commit at gcc dot gnu.org
2023-12-14 21:54 ` cvs-commit at gcc dot gnu.org
2024-05-03 13:12 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).