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
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
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 happe
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.
ormal
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{