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

--- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Zdenek Sojka from comment #10)
> (In reply to Andrew Pinski from comment #9)
> > (In reply to Andrew Pinski from comment #8)
> > > Looks like this code is originally from 
> > > https://github.com/OpenTTD/OpenTTD .
> > 
> > Specifically:
> > https://github.com/OpenTTD/OpenTTD/blob/
> > a617d009cca418255a9682fd83c9cebc6423303e/src/signature.cpp#L194
> 
> You are very right about that.
> 
> I don't know what are the flags needed to compile that file in order to get
> this error.
> I avoid providing the full pre-processed source, as I don't know if that
> wouldn't violate the license.

In this case OpenTTD is GPL code so it should be ok.  The reason why I am
asking is because the reduced auto-reduced testcase made it into undefined due
to the definition of std::forward that it created. namespace std is special and
functions even without being "builtins" are folded and that folding is what is
going wrong in this reduced testcase but I am not 100% sure what is happening
in the original case.

Reply via email to