IRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gnu-9fbaow at upsuper dot org
Target Milestone: ---
See the following code:
struct Foo {
Foo() {}
explicit Foo(const Foo& aOther) {}
};
struct Bar {
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79024
--- Comment #7 from Xidorn Quan ---
(In reply to Jonathan Wakely from comment #5)
> Please read 3.11 more carefully.
>
> "The alignment required for a type might be different when it is used as the
> type of a complete object and when it is used
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79024
--- Comment #4 from Xidorn Quan ---
(In reply to Jonathan Wakely from comment #3)
> (In reply to Xidorn Quan from comment #2)
> > That's interesting. But I
> > think developers (I mean, users of compilers) are generally more interested
> > on ali
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79024
--- Comment #2 from Xidorn Quan ---
ABI requires a different alignment than in struct? That's interesting. But I
think developers (I mean, users of compilers) are generally more interested on
alignment requirement in struct rather than that for A
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gnu-9fbaow at upsuper dot org
Target Milestone: ---
See the following code:
#include
#include
struct Test1 { char c; uint64_t u; };
struct Test2 { char c; alignas
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gnu-9fbaow at upsuper dot org
Target Milestone: ---
Test code:
> #include
>
> int main()
> {
> std::function f = [](auto&&...) {};
> return 0;
> }