https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97907
Bug ID: 97907
Summary: error when compiling with optimization
Product: gcc
Version: 10.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97907
--- Comment #2 from gustavo ---
(In reply to Andreas Schwab from comment #1)
> f1 invokes undefined behaviour by modifying an input-only asm operand.
as expected... this is a test for students.
only f3 matters.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91488
gustavo changed:
What|Removed |Added
CC||gustavo at ugr dot es
--- Comment #5 from gust
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91488
--- Comment #6 from gustavo ---
the bug is still here in gcc versiĆ³n 11.1.1 20210531 (Red Hat 11.1.1-3) (GCC)
g++ -fgnu-tm -O1 -Wallbug.cc -o bug
In file included from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91488
--- Comment #7 from gustavo ---
can be reproduced also trunk gcc in:
https://gcc.godbolt.org/z/v6T9j3r4M