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

            Bug ID: 105948
           Summary: RFE: analyzer could check c++ placement-new sizes
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: dmalcolm at gcc dot gnu.org
            Blocks: 97110, 105887
  Target Milestone: ---

clang's static analyzer has:
 
https://clang.llvm.org/docs/analyzer/checkers.html#cplusplus-placementnewchecker-c

We should check that placement new's memory region is large enough (for both
static and dynamic allocation cases).


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97110
[Bug 97110] [meta-bug] tracker bug for supporting C++ in -fanalyzer
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105887
[Bug 105887] [meta-bug] clang analyzer warnings that GCC's -fanalyzer could
implement

Reply via email to