Here is one which is an ICE on valid code:
int open()
{
int *x2feed_i = 0;
auto insert_feed = [&](unsigned char venue, int* newfeed)
{
for(int x2feed_i = 1; 0; ) ;
x2feed_i = newfeed;
}
}
The only reason why the original was invalid was the invalid use of x2feed_i inside the loop as I think the int should have been auto.
Here is one which is an ICE on valid code:
int open()
{
int *x2feed_i = 0;
auto insert_feed = [&](unsigned char venue, int* newfeed)
{
for(int x2feed_i = 1; 0; ) ;
x2feed_i = newfeed;
}
}
The only reason why the original was invalid was the invalid use of x2feed_i inside the loop as I think the int should have been auto.