https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98509
Bug ID: 98509 Summary: BUGURL quotation problem in libcody Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: ebotcazou at gcc dot gnu.org Target Milestone: --- We are facing a weird quotation problem for the BUGURL in libcody: In file included from <command-line>: ./config.h:5:35: error: stray '@' in program 5 | #define BUGURL ""URL:mailto:rep...@adacore.com"" | ^ ../../src/libcody/fatal.cc:62:44: note: in expansion of macro 'BUGURL' 62 | fprintf (stream, "Report bugs to %s.\n", BUGURL[0] ? BUGURL : "you"); | ^~~~~~ ./config.h:5:35: error: stray '@' in program 5 | #define BUGURL ""URL:mailto:rep...@adacore.com"" | ^ ../../src/libcody/fatal.cc:62:56: note: in expansion of macro 'BUGURL' 62 | fprintf (stream, "Report bugs to %s.\n", BUGURL[0] ? BUGURL : "you"); | ^~~~~~ See the double quote in the BUGURL macro, which is problematic and comes from AC_DEFUN([NMS_BUGURL], [AC_MSG_CHECKING([bugurl]) AC_ARG_WITH(bugurl, AS_HELP_STRING([--with-bugurl=URL],[where to report bugs]), AS_CASE(["$withval"], [yes], [AC_MSG_ERROR([--with-bugurl requires an argument])], [no], [BUGURL=""], [BUGURL="${withval}"]), [BUGURL="${PACKAGE_BUGREPORT}"]) AC_MSG_RESULT($BUGURL) AC_DEFINE_UNQUOTED(BUGURL,"$BUGURL",[Bug reporting location])]) since the compiler is configured --with-bugurl=URL:mailto:rep...@adacore.com