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

--- Comment #3 from Rainer Orth <ro at gcc dot gnu.org> ---
I've now reduced c-c++-common/analyzer/allocation-size-1.c:test_2 to minimal
preprocessed the inputs, still showing the difference:

$ cc1plus -fpreprocessed as1-sol2.ii -quiet -std=c++98
-fdiagnostics-color=never -fno-diagnostics-show-caret
-fno-diagnostics-show-line-numbers -fdiagnostics-urls=never
-fdiagnostics-path-format=separate-events -fdiagnostics-text-art-charset=none
-fmessage-length=0 -fanalyzer -fanalyzer-call-summaries -o as1.s

* as1-sol2.ii:

as1-sol2.ii:17:37: note: (1) allocated 42 bytes and assigned to ‘int32_t*’ {aka
‘int*’} here; ‘sizeof (int32_t {aka int})’ is ‘4’

* as1-lx.ii:

as1-lx.ii:21:37: note: (1) allocated 42 bytes here
as1-lx.ii:21:37: note: (2) assigned to ‘int32_t*’ {aka ‘int*’} here; ‘sizeof
(int32_t {aka int})’ is ‘4’

Reply via email to