https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102909
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102909
--- Comment #3 from Iru Cai ---
Looks like this kind of things are detected in the front-end. The GNAT
front-end can warn on the similar things:
procedure Main is
A : Integer;
B : constant Integer := 1;
begin
A := 0;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102909
--- Comment #2 from Iru Cai ---
So it looks something like https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44677
GCC thinks ``a`` is set but not used in ``a = 1 + b;``, but is used in ``a = 1;
a += b;``.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102909
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #1