public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/87497] constexprs involving non-literal const variables are incorrectly accepted
[not found] <bug-87497-4@http.gcc.gnu.org/bugzilla/>
@ 2021-07-23 23:45 ` pinskia at gcc dot gnu.org
2022-11-21 7:58 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-23 23:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87497
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Blocks| |55004
Status|UNCONFIRMED |NEW
Last reconfirmed| |2021-07-23
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004
[Bug 55004] [meta-bug] constexpr issues
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/87497] constexprs involving non-literal const variables are incorrectly accepted
[not found] <bug-87497-4@http.gcc.gnu.org/bugzilla/>
2021-07-23 23:45 ` [Bug c++/87497] constexprs involving non-literal const variables are incorrectly accepted pinskia at gcc dot gnu.org
@ 2022-11-21 7:58 ` pinskia at gcc dot gnu.org
2022-11-21 9:17 ` jakub at gcc dot gnu.org
2022-11-21 17:23 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-11-21 7:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87497
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |needs-bisection
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Seems to be fixed on the trunk.
I get now:
<source>: In function 'void g()':
<source>:3:63: in 'constexpr' expansion of 'foo(local_s)'
<source>:3:71: error: the value of 'local_s' is not usable in a constant
expression
3 | void g () { const s local_s = { 1, 2 }; constexpr int a = foo
(local_s); }
| ^
<source>:3:21: note: 'local_s' was not declared 'constexpr'
3 | void g () { const s local_s = { 1, 2 }; constexpr int a = foo
(local_s); }
| ^~~~~~~
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/87497] constexprs involving non-literal const variables are incorrectly accepted
[not found] <bug-87497-4@http.gcc.gnu.org/bugzilla/>
2021-07-23 23:45 ` [Bug c++/87497] constexprs involving non-literal const variables are incorrectly accepted pinskia at gcc dot gnu.org
2022-11-21 7:58 ` pinskia at gcc dot gnu.org
@ 2022-11-21 9:17 ` jakub at gcc dot gnu.org
2022-11-21 17:23 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-11-21 9:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87497
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|needs-bisection |
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
r13-766-g6209009df65ff68482ef66951856f50cf362d990
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/87497] constexprs involving non-literal const variables are incorrectly accepted
[not found] <bug-87497-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2022-11-21 9:17 ` jakub at gcc dot gnu.org
@ 2022-11-21 17:23 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-11-21 17:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87497
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
Target Milestone|--- |13.0
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The referenced change explictly added the check for this so closing as fixed.
It includes a testcase already too.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-11-21 17:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-87497-4@http.gcc.gnu.org/bugzilla/>
2021-07-23 23:45 ` [Bug c++/87497] constexprs involving non-literal const variables are incorrectly accepted pinskia at gcc dot gnu.org
2022-11-21 7:58 ` pinskia at gcc dot gnu.org
2022-11-21 9:17 ` jakub at gcc dot gnu.org
2022-11-21 17:23 ` 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).