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

            Bug ID: 122691
           Summary: [16 Regression] Bootstrap failure with cobol since
                    r16-5258
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: cobol
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

GCC fails to build with
--enable-languages=default,ada,obj-c++,lto,go,d,m2,cobol
--enable-checking=yes,rtl,extra --enable-libstdcxx-backtrace=yes
on x86_64-linux since r16-5258-g1d8e2d51e5c5cbdb6ad6f455a050af869103dad4
The error is
../../gcc/cobol/lexio.cc: In function ‘std::pair<std::__cxx11::list<replace_t>,
char*> parse_replace_pairs(const char*, const char*, bool)’:
../../gcc/cobol/lexio.cc:907:76: error: ‘%.*s’ directive argument is null
[-Werror=format-overflow=]
  907 |     dbgmsg( "%s:%d: %s: " HOST_SIZE_T_PRINT_UNSIGNED " pairs parsed
from  '%.*s'",
      |                                                                        
   ^~~~
I guess I'm going to apply test an obvious workaround, but it would be nice to
find out if the optimization changes are ok or not.

Reply via email to