[Bug c++/55881] #pragma GCC diagnostic ignored ignored when inlining
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Nov 2 12:20:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55881
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2013-01-07 00:00:00 |2019-11-2
--- Comment #8 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
<source>: In function 'int main(int, char**)':
<source>:6:15: warning: 'n' may be used uninitialized in this function
[-Wmaybe-uninitialized]
6 | return n->i + 10;
| ~~~^
<source>:14:16: note: 'n' was declared here
14 | struct I i, *n;
| ^
Still valid. The main issue is that the stack of inlining locations is lost.
Once that is recovered the #pragma can check whether any location in the stack
is within the range and act.
More information about the Gcc-bugs
mailing list