[Bug c++/93703] global const getting lost in g++

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 12 12:30:00 GMT 2020


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
'const' implies internal linkage unless you specify extern.  So 'extern' is
missing in a.cc.  (this is unlike in C where const does not imply internal
linkage)


More information about the Gcc-bugs mailing list