[Bug c++/61039] Using a constexpr's address as a template variable produces an unnecessary warning
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 13 21:34:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61039
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |msebor at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
I believe the warning is intended here (child1 and child2 have external linkage
but their base classes are specializations of templates that depend on (the
address of) objects with internal linkage (constexpr). That could cause
problems as described in the GCC manual under the -Wsubobject-linkage option.
More information about the Gcc-bugs
mailing list