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

            Bug ID: 123818
           Summary: Different default arguments to 2 different functions
                    sometimes go wrong and use the first one only
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Created attachment 63485
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63485&action=edit
Reduced testcase

First this is not a regression as far as I can tell. it has been a bug since
4.7 when -std=c++0x support was added.

Basically the default argument for get_dst_data and get_src_data are supposed
to be different but it looks like the front-end combines both of them into one
and uses the first one.

Reply via email to