https://bugzilla.kernel.org/show_bug.cgi?id=215851 Marek Polacek (polacek@xxxxxxxxxx) changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |polacek@xxxxxxxxxx --- Comment #2 from Marek Polacek (polacek@xxxxxxxxxx) --- I agree that gcc shouldn't warn here. I just pushed a patch to suppress that warning: https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=d482b20fd346482635a770281a164a09d608b058 and I plan to backport it to gcc 12 as well. gcc 11 doesn't have -Wdangling-pointer. So I think you should be able to re-enable -Wdangling-pointer soon. -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.