Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 681562 Details for
Bug 764158
find a way to backport gcc pr95353 into gcc-10
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
minimal example
minimal-example1.cpp (text/x-c++src), 604 bytes, created by
tt_1
on 2021-01-06 18:27:36 UTC
(
hide
)
Description:
minimal example
Filename:
MIME Type:
Creator:
tt_1
Created:
2021-01-06 18:27:36 UTC
Size:
604 bytes
patch
obsolete
>#include <stdint.h> >#include <array> >#include <cstring> > >extern void* globalData; > >class Container >{ >public: > > std::array<uint8_t, 1> militarySettings_; > std::array<uint8_t, 3> toolsSettings_; > void bar(); >}; > >void Pop(void* data, unsigned length){ > std::memcpy(data, globalData, length); >} >uint8_t PopUnsignedChar(){ > uint8_t i; > Pop(&i, sizeof(i)); > return i; >} > >void Container::bar() >{ > for (uint8_t &militarySetting : militarySettings_) > militarySetting = PopUnsignedChar(); > > for (uint8_t &toolsSetting : toolsSettings_) > toolsSetting = PopUnsignedChar(); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 764158
: 681562