[Debian-med-packaging] Bug#925629: aghermann: ftbfs with GCC-9

andrei zavada johnhommer at gmail.com
Mon Jan 13 06:15:41 GMT 2020


Sorry, yes, it was; now cc-ing both.

On Mon, 13 Jan 2020 at 03:36, Matthew Fernandez
<matthew.fernandez at gmail.com> wrote:
>
> Was this meant to also go to Andreas and the tracker?
>
> On Sun, 12 Jan 2020 at 16:26, andrei zavada <johnhommer at gmail.com> wrote:
>>
>> Indeed, deleting that attribute would be best (perhaps with a link to
>> the gcc bug in a comment).
>>
>> On Mon, 13 Jan 2020 at 00:08, Matthew Fernandez
>> <matthew.fernandez at gmail.com> wrote:
>> >
>> >
>> > > On Jan 12, 2020, at 12:49, Andreas Tille <andreas at an3as.eu> wrote:
>> > >
>> > > Hi,
>> > >
>> > > I'm wondering how this bug
>> > >
>> > >
>> > > rk1968/rk1968.cc: In lambda function:
>> > > rk1968/rk1968.cc:237:103: error: expected '{' before '->' token
>> > >  237 |         auto make_error_return = [&L] ( const char* fmt, ...) __attribute__ ((format (printf, 2, 3))) -> int
>> > >      |                                                                                                       ^~
>> > >
>> > >
>> > > with gcc 9 can be fixed in aghermann.  Any help would be appreciated.
>> >
>> > I think you’re hitting GCC bug #90333 [0]. This claims to have been fixed in r265787, but I can still reproduce this issue with GCC 9.2.1 that includes that commit. Turning this into a C++11 attribute ([[gnu::format(printf, 2, 3)]]) makes the parse error go away, but -Wattributes still indicates GCC is ignoring it. You might need to bump that GCC issue with some evidence that the bug still exists and see what the maintainers say. If you need to bypass this urgently, I would recommend deleting the attribute as that particular one is only used to aid the compiler in creating warnings.
>> >
>> >   [0]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90333



More information about the Debian-med-packaging mailing list