[Bug c++/86464] New: Delegating constructor causes error if parameter has same name as class

2018-07-10 Thread gar...@ignition-web.co.uk
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gar...@ignition-web.co.uk Target Milestone: --- struct foo { foo( foo const & ) = default; foo( foo const & foo, int ) : foo{ foo } {} foo( f

[Bug c++/90089] New: Missing optimization, elimination of empty data dependant loops

2019-04-14 Thread gar...@ignition-web.co.uk
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gar...@ignition-web.co.uk Target Milestone: --- void * x; void test(){ for(void * p = x; p; p=*(void**)p); } With -O3 gives: test(): mov rax, QWORD PTR x[rip] test

[Bug middle-end/67809] Empty pointer-chasing loops aren't optimized out

2019-04-15 Thread gar...@ignition-web.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67809 --- Comment #7 from Gareth Lloyd --- To give extra context, this optimization is desirable when using pmr::monotonic_buffer_resource. After de-virtualization and inlining it is likely for node based containers with trivially destructible internal