https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95130
--- Comment #20 from Tomas Kalibera <tomas.kalibera at gmail dot com> --- (In reply to Julian Waters from comment #19) > (In reply to Tomas Kalibera from comment #17) > > (In reply to Tomas Kalibera from comment #16) > > > (In reply to Julian Waters from comment #15) > > > > It seems like the patch also doesn't fix the strftime case too, > > > > strangely > > > > enough. gcc with that patch applied still causes a compilation failure > > > > in > > > > the Windows JDK when encountering strftime with the %T specifier > > > > > > > > > I don't easily see why the patch doesn't help with %T in strftime. In > > > MinGW-W64 10, strftime doesn't seem to have a format attribute at all, so > > > the patch couldn't help. But in MinGW-W64 11, the gnu_strftime format > > > attribute is present. > > > > The older version of the patch I use with gcc 12 doesn't seem to be helping > > with %T, but the newer one (patch_master.diff) helps with %T on the current > > gcc master (gcc 14) and the current gcc 13 branch (gcc 13.2). Tested with > > MinGW-W64 11.0.1. > > If I may ask, could I have the link to patch_master.diff? It is one of the attachments of this report, https://gcc.gnu.org/bugzilla/attachment.cgi?id=53778 This patch has not been reviewed. I am not an expert on GCC internals and I cannot guarantee that adding meta-data this way to the AST is safe. So please use with care.