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
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
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
++
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