public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/91693] Comparing addresses of templated inline vars gets bogus "not a constant expression" error
[not found] <bug-91693-4@http.gcc.gnu.org/bugzilla/>
@ 2021-12-28 10:39 ` pinskia at gcc dot gnu.org
2021-12-28 10:40 ` pinskia at gcc dot gnu.org
2021-12-28 10:46 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-28 10:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91693
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The inline part of the template variable does not make a difference.
Reduced testcase:
template <int> char hh= 0;
static_assert(&hh<0> != &hh<1>, "should not be equal");
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/91693] Comparing addresses of templated inline vars gets bogus "not a constant expression" error
[not found] <bug-91693-4@http.gcc.gnu.org/bugzilla/>
2021-12-28 10:39 ` [Bug c++/91693] Comparing addresses of templated inline vars gets bogus "not a constant expression" error pinskia at gcc dot gnu.org
@ 2021-12-28 10:40 ` pinskia at gcc dot gnu.org
2021-12-28 10:46 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-28 10:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91693
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bluescarni at gmail dot com
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 94716 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/91693] Comparing addresses of templated inline vars gets bogus "not a constant expression" error
[not found] <bug-91693-4@http.gcc.gnu.org/bugzilla/>
2021-12-28 10:39 ` [Bug c++/91693] Comparing addresses of templated inline vars gets bogus "not a constant expression" error pinskia at gcc dot gnu.org
2021-12-28 10:40 ` pinskia at gcc dot gnu.org
@ 2021-12-28 10:46 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-28 10:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91693
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 85428.
*** This bug has been marked as a duplicate of bug 85428 ***
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-12-28 10:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-91693-4@http.gcc.gnu.org/bugzilla/>
2021-12-28 10:39 ` [Bug c++/91693] Comparing addresses of templated inline vars gets bogus "not a constant expression" error pinskia at gcc dot gnu.org
2021-12-28 10:40 ` pinskia at gcc dot gnu.org
2021-12-28 10:46 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).