Re: GCC help needed for chromium

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 02, 2020 at 08:57:46AM -0500, Tom Callaway wrote:
> Wait, I know that $TOPIC is scary, come back.
> 
> Chromium has this chunk of code (in
> third_party/angle/src/common/PackedEnums.h):
> 
>              // This horrible const_cast pattern is necessary to work
> around a constexpr limitation.
>              // See https://stackoverflow.com/q/34199774/ . Note that it
> should be fixed with C++17.
>              const_cast<T &>(const_cast<const Storage &>(
>                 mPrivateData)[static_cast<UnderlyingType>(it->first)]) =
> it->second;
> 
> This code built with gcc9, but with gcc10 it no longer works.

Is it now rejected with some error (which)?
Generally, such code snippets aren't really very useful because they lack
context, so what we really need is full preprocessed sources + g++ command
line options used to reproduce it, if gcc9 built and gcc10 doesn't, best
preprocessed sources from both gcc 9 and gcc 10, so that we can find out if
it is a header change or compiler change that matters.

	Jakub
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux