[Bug c++/82235] New: Copy ctor is not found for copying array of an object when it's marked explicit

2017-09-17 Thread gnu-9fbaow at upsuper dot org
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 {

[Bug c++/79024] alignas / alignof report wrong alignment for 64bit integer types for 32bit target

2017-01-09 Thread gnu-9fbaow at upsuper dot org
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

[Bug c++/79024] alignas / alignof report wrong alignment for 64bit integer types for 32bit target

2017-01-08 Thread gnu-9fbaow at upsuper dot org
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

[Bug c++/79024] alignas / alignof report wrong alignment for 64bit integer types for 32bit target

2017-01-07 Thread gnu-9fbaow at upsuper dot org
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

[Bug c++/79024] New: alignas / alignof report wrong alignment for 64bit integer types for 32bit target

2017-01-07 Thread gnu-9fbaow at upsuper dot org
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

[Bug c++/77451] New: Cannot convert lambda [](auto&&...){} to std::function

2016-09-02 Thread gnu-9fbaow at upsuper dot org
: 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; > }