https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120025

            Bug ID: 120025
           Summary: rfe: split assignable temporaries from -fpermissive
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: stsp at users dot sourceforge.net
  Target Milestone: ---

Just wondering how feasible would
that be to have the dedicate switch
for assignable temporaries?
This is quite a nice feature of
-fpermissive, w/o the good alternative
known to me.

The real power of that feature
comes from the fact that the
temporary object can have the
dtor which will be called at the
sequential point of evaluation.
That dtor can observe all the
performed modifications and do
the real work. This feature is
unique to gcc, but if it had a
dedicated switch, then from the
vague comments I've got on clang
forum it seems that they may
consider adding it to clang too.

Reply via email to