[Bug c++/107953] Greater-than operator misparsed inside a lambda expression used as a template argument

2022-12-02 Thread majerech.o at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107953 --- Comment #4 from Ondřej Majerech --- It seems that the core of PR 57 is that `A

[Bug c++/107953] New: Greater-than operator misparsed inside a lambda expression used as a template argument

2022-12-02 Thread majerech.o at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: majerech.o at gmail dot com Target Milestone: --- template void f() { } constexpr auto g = f<[] (int x, int y) { return x > y; }>; This produces the

[Bug c++/66139] destructor not called for members of partially constructed anonymous struct/array

2017-05-10 Thread majerech.o at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66139 --- Comment #13 from Ondřej Majerech --- (In reply to Xi Ruoyao from comment #12) > (In reply to Jaak Ristioja from comment #9) > > [1]: http://stackoverflow.com/a/43892501/3919155 > > I don't think this is the same bug. > This bug seems

[Bug c++/66139] destructor not called for members of partially constructed anonymous struct/array

2017-05-10 Thread majerech.o at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66139 --- Comment #10 from Ondřej Majerech --- That SO answer appears to be plain out wrong. Running your snippet on GCC 6.3.1 and 8.0.0 20170507, the program calls terminate for me, even with the cout << "Welcome" line included.

[Bug c++/80683] New: Exceptions don't propagate through default member initializer

2017-05-08 Thread majerech.o at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: majerech.o at gmail dot com Target Milestone: --- Testcase: #include #include struct bar { bar() { throw std::runtime_error{"foo"}; } }; struct foo { bar b{}; };