https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100498
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Wolfgang Roehrl from comment #0)
> I would like to post a bug report for the GNU C/C++ compiler 7.5.0.
Please don't :-)
The oldest supported release is 8.4.0 and even the 8,x branch is almost out of
support, so please try using a current release before reporting bugs.
This was already fixed by this commit:
PR c++/80485 - inline function non-zero address.
* symtab.c (nonzero_address): Check DECL_COMDAT.
From-SVN: r260762
Your code works correctly in GCC 8.2.0 and later
*** This bug has been marked as a duplicate of bug 80485 ***