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

            Bug ID: 121469
           Summary: Combination of out, trunc, binary and noreplace is
                    surprising
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Theodore.Papadopoulo at inria dot fr
  Target Milestone: ---

The use of std::ios::binary|std::ios::out|std::ios::trunc|std::ios::noreplace
triggers the default option in basic_file_stdio.cc::fopen_mode and hence has a
surprising behavior.

Reply via email to