[Bug c++/91290] New: pragma maybe-uninitialized does not propagate to lambda

2019-07-29 Thread mickg at mickg dot net
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mickg at mickg dot net Target Milestone: --- Using gcc 9.1.1 and 10.x: Seems like during inlining, pragmas are not propagated to the inlined code. Reproduction: g++ -Wall -Wextra -O2 (https

[Bug c++/87616] Compiler segfaults on dependent templated friend

2018-10-15 Thread mickg at mickg dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87616 --- Comment #2 from Michael Gorbovitski --- Slightly simplified test case (no need for double-argument template): struct foo{}; template struct friender { using cls=foo; }; class bar { template friend class friender::cls; int

[Bug c++/87616] Compiler segfaults on dependent templated friend

2018-10-15 Thread mickg at mickg dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87616 --- Comment #1 from Michael Gorbovitski --- > g++ prog.cc -Wall -Wextra prog.cc:8:36: internal compiler error: Segmentation fault 8 | friend class friender::cls; |^ 0xb3 crash_signal ../../so

[Bug c++/87616] New: Compiler segfaults on dependent templated friend

2018-10-15 Thread mickg at mickg dot net
++ Assignee: unassigned at gcc dot gnu.org Reporter: mickg at mickg dot net Target Milestone: --- Sample that does not compile : struct foo{}; template struct friender { using cls=foo; }; class bar { template friend class friender::cls; int hidden