[Bug c++/55203] No unused warning for variables of non-trivial types

2016-02-18 Thread gcc at bobbyperu dot info
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55203 Sergio Martins changed: What|Removed |Added CC||gcc at bobbyperu dot info --- Comment

[Bug c++/38172] warn_unused_result does not work with structs not containing a copy constructor

2017-04-19 Thread gcc at bobbyperu dot info
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38172 --- Comment #13 from Sergio Martins --- Any point in using warn_unused_result instead of nodiscard on compilers that support both ? Probably a good time to close this bug. While it would be nice to have it fixed there's no point on wasting resou

[Bug c++/66177] New: warn_unused_result doesn't always work

2015-05-16 Thread gcc at bobbyperu dot info
nt: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc at bobbyperu dot info Target Milestone: --- Testcase fails to work with gcc, works with clang. = struct QSize { QSize(int w, int h) : wd(w), ht(h) {} QSize expandedTo() const __attribute__ ((__warn_unused_res

[Bug c++/66177] warn_unused_result doesn't always work

2015-05-16 Thread gcc at bobbyperu dot info
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66177 --- Comment #1 from Sergio Martins --- It this is known, at least please mention in the documentation it only works for built-in types.

[Bug c++/65309] [Regression] Executes wrong function inside an anonymous namespace on runtime

2015-03-04 Thread gcc at bobbyperu dot info
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65309 Sergio Martins changed: What|Removed |Added CC||gcc at bobbyperu dot info --- Comment

[Bug c++/69008] New: gcc emits unneeded memory access when passing trivial structs by value (ARM)

2015-12-21 Thread gcc at bobbyperu dot info
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc at bobbyperu dot info Target Milestone: --- gcc is emitting unneeded memory accesses in this code snippet. Trivial structs up to 16 bytes are passed in r0-r3, no need for