[Bug 277236] devel/qt5-script: clang optimization miscompiles qtscript

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Feb 23 17:07:39 GMT 2024


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277236

--- Comment #4 from John F. Carr <jfc at mit.edu> ---
Here is an example:

struct S {
  long alignment;
  int this_lowbit();
};
int S::this_lowbit() { return reinterpret_cast<signed long>(this) & 1; }

The method this_lowbit always returns zero with optimization enabled.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-freebsd mailing list