https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97981
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Uecker <uec...@gcc.gnu.org>: https://gcc.gnu.org/g:a19a242c708060e067b4fd5a76995144e6f239d0 commit r11-5832-ga19a242c708060e067b4fd5a76995144e6f239d0 Author: Martin Uecker <muec...@gwdg.de> Date: Mon Dec 7 23:51:25 2020 +0100 C: Fix atomic loads. [PR97981] To handle atomic loads correctly, we need to move the code that drops qualifiers in lvalue conversion after the code that handles atomics. 2020-12-07 Martin Uecker <muec...@gwdg.de> gcc/c/ PR c/97981 * c-typeck.c (convert_lvalue_to_rvalue): Move the code that drops qualifiers to the end of the function. gcc/testsuite/ PR c/97981 * gcc.dg/pr97981.c: New test. * gcc.dg/pr60195.c: Adapt test.