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

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ro at gcc dot gnu.org

--- Comment #2 from Rainer Orth <ro at gcc dot gnu.org> ---
I've recently run into what seems to be the same issue, cf. GDB PR build/29791
for details: all of gdbsupport fails to compile with gcc 12.2.0 on Solaris like
this:

In file included from /usr/include/sys/time.h:448,
                 from ../gnulib/import/sys/time.h:39,
                 from /usr/include/sys/select.h:27,
                 from ../gnulib/import/sys/select.h:36,
                 from /usr/include/sys/types.h:665,
                 from ../gnulib/import/sys/types.h:39,
                 from ../gnulib/import/stdio.h:58,
                 from
/vol/src/gnu/gdb/hg/master/dist/gdbsupport/common-defs.h:86,
                 from /vol/src/gnu/gdb/hg/master/dist/gdbsupport/ptid.cc:20:
../gnulib/config.h:1693:72: error: ‘malloc’ attribute argument 1 is ambiguous
 1693 | # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f,
i)))
      |                                                                       
^
../gnulib/config.h:1693:72: note: use a cast to the expected type to
disambiguate
../gnulib/config.h:1693:72: error: ‘malloc’ attribute argument 1 is ambiguous

The preprocessed testcase (not reduced) is attached to that PR:

  https://sourceware.org/bugzilla/show_bug.cgi?id=29791

Unfortunately, nobody has been able to determine yet where exactly the
ambiguity
lies, and unlike other cases, g++ doesn't show that.  Any suggestions on how to
proceed?

Reply via email to