[Bug c++/93842] generic lambda accesses a variable with with automatic storage duration that wasn't captured by the lambda expression

2020-06-16 Thread kuzniar95 at o2 dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93842 kuzniar95 at o2 dot pl changed: What|Removed |Added Resolution|--- |INVALID Status

[Bug c++/93842] generic lambda accesses a variable with with automatic storage duration that wasn't captured by the lambda expression

2020-06-16 Thread kuzniar95 at o2 dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93842 kuzniar95 at o2 dot pl changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution

[Bug c++/93842] generic lambda accesses a variable with with automatic storage duration that wasn't captured by the lambda expression

2020-06-16 Thread kuzniar95 at o2 dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93842 --- Comment #6 from kuzniar95 at o2 dot pl --- P.S. odr_use function signature should be: void odr_use(const char&);

[Bug c++/93842] generic lambda accesses a variable with with automatic storage duration that wasn't captured by the lambda expression

2020-06-16 Thread kuzniar95 at o2 dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93842 kuzniar95 at o2 dot pl changed: What|Removed |Added Resolution|--- |INVALID Status

[Bug libstdc++/71579] type_traits miss checks for type completeness in some traits

2020-06-09 Thread kuzniar95 at o2 dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71579 kuzniar95 at o2 dot pl changed: What|Removed |Added CC||kuzniar95 at o2 dot pl

[Bug c++/95606] New: [10/11 regression] conflicts with std::is_constructible

2020-06-09 Thread kuzniar95 at o2 dot pl
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: kuzniar95 at o2 dot pl Target Milestone: --- Created attachment 48713 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48713&action=edit main.ii + verbose gcc invoke command Hi! I&#

[Bug c++/93842] generic lambda accesses a variable with with automatic storage duration that wasn't captured by the lambda expression

2020-02-23 Thread kuzniar95 at o2 dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93842 --- Comment #4 from kuzniar95 at o2 dot pl --- I meant that dropping constness: char ch = '='; // OK results in an error: lambda.cpp: In lambda function: lambda.cpp:4:23: error: ‘ch’ is not captured 4 | [](auto) { return ch

[Bug c++/93842] generic lambda accesses a variable with with automatic storage duration that wasn't captured by the lambda expression

2020-02-20 Thread kuzniar95 at o2 dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93842 --- Comment #3 from kuzniar95 at o2 dot pl --- @Richard Biener changing it to char const ch = '='; // NOT OK doesn't solve the issue. Interestingly dropping constness: char ch = '='; // OK works. So we are onto s

[Bug c++/93842] New: generic lambda accesses a variable with with automatic storage duration that wasn't captured by the lambda expression

2020-02-19 Thread kuzniar95 at o2 dot pl
rsion: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: kuzniar95 at o2 dot pl Target Milestone: --- The following code: -- int main() { cons

[Bug c++/93311] Missing "warning" when instantiating a constexpr function

2020-01-17 Thread kuzniar95 at o2 dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93311 kuzniar95 at o2 dot pl changed: What|Removed |Added Resolution|DUPLICATE |FIXED --- Comment #2 from

[Bug c++/93311] New: Missing "warning" when instantiating a constexpr function

2020-01-17 Thread kuzniar95 at o2 dot pl
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: kuzniar95 at o2 dot pl Target Milestone: --- The following piece of code produces a binary but the compiler output doesn't inform if it's a warning or an error. Compilation