https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85487
Baruch Burstein changed:
What|Removed |Added
CC||bmburstein at gmail dot com
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: bmburstein at gmail dot com
Target Milestone: ---
In the following code:
#include
int foo(int);
int main() {
for(int i=0; i<5; ++i) {
foo(i);
}
for(int i : {0,1,2,
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: bmburstein at gmail dot com
Target Milestone: ---
Created attachment 44883
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44883&action=edit
test case
The test
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87709
--- Comment #4 from Baruch Burstein ---
There is a pretty good (speculative) analysis of this issue here:
https://stackoverflow.com/a/52986284/331785
I am copying it to here for completeness, but credit for this goes to the
author of that post:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85487
--- Comment #15 from Baruch Burstein ---
(In reply to Jonathan Wakely from comment #13)
> (In reply to rsand...@gcc.gnu.org from comment #12)
>
> > I think the patch would need to wait for GCC 13 now though.
>
> Indeed.
Now that GCC 13 is the