public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/93314] [8/9/10 Regression] Invalid use of non-static data member causes ICE in gimplify_expr
[not found] <bug-93314-4@http.gcc.gnu.org/bugzilla/>
@ 2020-04-01 8:02 ` rguenth at gcc dot gnu.org
2021-04-14 17:48 ` [Bug c++/93314] [8/9/10/11 " cvs-commit at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-04-01 8:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93314
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/93314] [8/9/10/11 Regression] Invalid use of non-static data member causes ICE in gimplify_expr
[not found] <bug-93314-4@http.gcc.gnu.org/bugzilla/>
2020-04-01 8:02 ` [Bug c++/93314] [8/9/10 Regression] Invalid use of non-static data member causes ICE in gimplify_expr rguenth at gcc dot gnu.org
@ 2021-04-14 17:48 ` cvs-commit at gcc dot gnu.org
2021-04-14 17:49 ` [Bug c++/93314] [8/9/10 " jason at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-14 17:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93314
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:9b53edc796d284b6adec7f2996772dbddf4c341e
commit r11-8181-g9b53edc796d284b6adec7f2996772dbddf4c341e
Author: Jason Merrill <jason@redhat.com>
Date: Wed Apr 14 09:30:05 2021 -0400
c++: non-static member, array bound, sizeof [PR93314]
N2253 allowed referring to non-static data members without an object in
unevaluated operands like that of sizeof, but in a constant-expression
context like an array bound or template argument within such an unevaluated
operand we do actually need a value, so that permission cannot apply.
gcc/cp/ChangeLog:
PR c++/93314
* semantics.c (finish_id_expression_1): Clear
cp_unevaluated_operand
for a non-static data member in a constant-expression.
gcc/testsuite/ChangeLog:
PR c++/93314
* g++.dg/parse/uneval1.C: New test.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/93314] [8/9/10 Regression] Invalid use of non-static data member causes ICE in gimplify_expr
[not found] <bug-93314-4@http.gcc.gnu.org/bugzilla/>
2020-04-01 8:02 ` [Bug c++/93314] [8/9/10 Regression] Invalid use of non-static data member causes ICE in gimplify_expr rguenth at gcc dot gnu.org
2021-04-14 17:48 ` [Bug c++/93314] [8/9/10/11 " cvs-commit at gcc dot gnu.org
@ 2021-04-14 17:49 ` jason at gcc dot gnu.org
2021-04-14 17:49 ` jason at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2021-04-14 17:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93314
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[8/9/10/11 Regression] |[8/9/10 Regression] Invalid
|Invalid use of non-static |use of non-static data
|data member causes ICE in |member causes ICE in
|gimplify_expr |gimplify_expr
Known to work| |11.0
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 11 so far.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/93314] [8/9/10 Regression] Invalid use of non-static data member causes ICE in gimplify_expr
[not found] <bug-93314-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2021-04-14 17:49 ` [Bug c++/93314] [8/9/10 " jason at gcc dot gnu.org
@ 2021-04-14 17:49 ` jason at gcc dot gnu.org
2021-05-14 9:52 ` [Bug c++/93314] [9/10 " jakub at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2021-04-14 17:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93314
--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> ---
Created attachment 50594
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50594&action=edit
patch for stage 1
A more general, but also more risky, fix for next stage 1.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/93314] [9/10 Regression] Invalid use of non-static data member causes ICE in gimplify_expr
[not found] <bug-93314-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2021-04-14 17:49 ` jason at gcc dot gnu.org
@ 2021-05-14 9:52 ` jakub at gcc dot gnu.org
2021-05-18 21:19 ` cvs-commit at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-14 9:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93314
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|8.5 |9.4
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 8 branch is being closed.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/93314] [9/10 Regression] Invalid use of non-static data member causes ICE in gimplify_expr
[not found] <bug-93314-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2021-05-14 9:52 ` [Bug c++/93314] [9/10 " jakub at gcc dot gnu.org
@ 2021-05-18 21:19 ` cvs-commit at gcc dot gnu.org
2021-06-01 8:15 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-18 21:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93314
--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:
https://gcc.gnu.org/g:b786dafe9eb933f23686c68c6d7110fef5656985
commit r11-8430-gb786dafe9eb933f23686c68c6d7110fef5656985
Author: Jason Merrill <jason@redhat.com>
Date: Wed Apr 14 11:24:50 2021 -0400
c++: constant expressions are evaluated [PR93314]
My GCC 11 patch for PR93314 turned off cp_unevaluated_operand while
processing an id-expression that names a non-static data member, but the
broader issue is that in general, a constant-expression is evaluated even
in
an unevaluated operand.
This also fixes 100205, introduced by the earlier patch that couldn't
distinguish between the different allow_non_constant_p cases.
PR c++/100205
PR c++/93314
gcc/cp/ChangeLog:
* cp-tree.h (cp_evaluated): Add reset parm to constructor.
* parser.c (cp_parser_constant_expression): Change
allow_non_constant_p to int. Use cp_evaluated.
(cp_parser_initializer_clause): Pass 2 to allow_non_constant_p.
* semantics.c (finish_id_expression_1): Don't mess with
cp_unevaluated_operand here.
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/decltype-nonstatic1.C: New test.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/93314] [9/10 Regression] Invalid use of non-static data member causes ICE in gimplify_expr
[not found] <bug-93314-4@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2021-05-18 21:19 ` cvs-commit at gcc dot gnu.org
@ 2021-06-01 8:15 ` rguenth at gcc dot gnu.org
2022-05-27 9:41 ` [Bug c++/93314] [10 " rguenth at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-01 8:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93314
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|9.4 |9.5
--- Comment #12 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9.4 is being released, retargeting bugs to GCC 9.5.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/93314] [10 Regression] Invalid use of non-static data member causes ICE in gimplify_expr
[not found] <bug-93314-4@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2021-06-01 8:15 ` rguenth at gcc dot gnu.org
@ 2022-05-27 9:41 ` rguenth at gcc dot gnu.org
2022-06-28 10:39 ` jakub at gcc dot gnu.org
2023-07-07 8:45 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27 9:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93314
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|9.5 |10.4
--- Comment #13 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9 branch is being closed
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/93314] [10 Regression] Invalid use of non-static data member causes ICE in gimplify_expr
[not found] <bug-93314-4@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2022-05-27 9:41 ` [Bug c++/93314] [10 " rguenth at gcc dot gnu.org
@ 2022-06-28 10:39 ` jakub at gcc dot gnu.org
2023-07-07 8:45 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93314
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.4 |10.5
--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/93314] [10 Regression] Invalid use of non-static data member causes ICE in gimplify_expr
[not found] <bug-93314-4@http.gcc.gnu.org/bugzilla/>
` (8 preceding siblings ...)
2022-06-28 10:39 ` jakub at gcc dot gnu.org
@ 2023-07-07 8:45 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 8:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93314
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Target Milestone|10.5 |11.0
Resolution|--- |FIXED
Known to fail| |10.5.0
--- Comment #15 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed in GCC 11.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2023-07-07 8:46 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-93314-4@http.gcc.gnu.org/bugzilla/>
2020-04-01 8:02 ` [Bug c++/93314] [8/9/10 Regression] Invalid use of non-static data member causes ICE in gimplify_expr rguenth at gcc dot gnu.org
2021-04-14 17:48 ` [Bug c++/93314] [8/9/10/11 " cvs-commit at gcc dot gnu.org
2021-04-14 17:49 ` [Bug c++/93314] [8/9/10 " jason at gcc dot gnu.org
2021-04-14 17:49 ` jason at gcc dot gnu.org
2021-05-14 9:52 ` [Bug c++/93314] [9/10 " jakub at gcc dot gnu.org
2021-05-18 21:19 ` cvs-commit at gcc dot gnu.org
2021-06-01 8:15 ` rguenth at gcc dot gnu.org
2022-05-27 9:41 ` [Bug c++/93314] [10 " rguenth at gcc dot gnu.org
2022-06-28 10:39 ` jakub at gcc dot gnu.org
2023-07-07 8:45 ` rguenth 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).