https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112288
Patrick Palka changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112288
--- Comment #9 from Fabio Alemagna ---
(In reply to Patrick Palka from comment #8)
> The issue was probably latent before r6-6830. The testcase is kind of
> strange,
It's the "friend injection" technique. In this case, it's used to create a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112288
--- Comment #8 from Patrick Palka ---
The issue was probably latent before r6-6830. The testcase is kind of strange,
e.g. 'slot_allocated' is defined within 'allocate_slot' instead of within
'slot', which would arguably be more natural given
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112288
--- Comment #7 from Fabio Alemagna ---
(In reply to Marek Polacek from comment #6)
> (In reply to Andrew Pinski from comment #5)
> > (In reply to Fabio Alemagna from comment #4)
> > > (In reply to Marek Polacek from comment #2)
> > > >
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112288
--- Comment #6 from Marek Polacek ---
(In reply to Andrew Pinski from comment #5)
> (In reply to Fabio Alemagna from comment #4)
> > (In reply to Marek Polacek from comment #2)
> > > Confirmed. Started with r6-6830-g20a0c6f9bdbd78:
> > >
> >
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112288
--- Comment #5 from Andrew Pinski ---
(In reply to Fabio Alemagna from comment #4)
> (In reply to Marek Polacek from comment #2)
> > Confirmed. Started with r6-6830-g20a0c6f9bdbd78:
> >
> > commit 20a0c6f9bdbd781ed5d413a10a06764a174dc394
> >
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112288
--- Comment #4 from Fabio Alemagna ---
(In reply to Marek Polacek from comment #2)
> Confirmed. Started with r6-6830-g20a0c6f9bdbd78:
>
> commit 20a0c6f9bdbd781ed5d413a10a06764a174dc394
> Author: Patrick Palka
> Date: Mon Feb 8 23:02:50
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112288
--- Comment #3 from Marek Polacek ---
// PR c++/112288
namespace {
template
class counter
{
public:
template
static constexpr int next()
{
return next(0)*Step+Start;
}
private:
template
struct slot
{
template
friend
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112288
Marek Polacek changed:
What|Removed |Added
Keywords|needs-bisection |ice-on-valid-code