[Bug other/60783] New: unexpected address variation when taking address of reference, const reference, etc.

2014-04-07 Thread parke.nexus at gmail dot com
Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: parke.nexus at gmail dot com I am comparing passing pointers versus references into a function. I encountered unexpected variations when taking the address of passed

[Bug other/60783] unexpected address variation when taking address of reference, const reference, etc.

2014-04-07 Thread parke.nexus at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60783 --- Comment #3 from Parke --- Thanks, I thought it might be something like the creation of temporaries, but could not find it discussed anywhere, and was surprised that I got different behavior from 4.7.3 (many temporaries) and 4.8.2 (apparently o

[Bug c/109673] New: warn_unused_result warnings are incorrect (and/or missing) and vary when -Os is specified

2023-04-28 Thread parke.nexus at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: parke.nexus at gmail dot com Target Milestone: --- When I compile the below sample program without -Os, I expect one warning but receive zero warnings. When I

[Bug c/109673] warn_unused_result warnings are incorrect (and/or missing) and vary when -Os is specified

2023-04-28 Thread parke.nexus at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109673 --- Comment #2 from Parke --- Thank you for the explanation. It seems to me that it would (should?) be possible for -Os to detect the cast-to-void and therefore suppress the second warning (line 5). It also seems to me the above change, if imp