[Bug c++/97907] error when compiling with optimization

2020-11-19 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97907 Andreas Schwab changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/97907] error when compiling with optimization

2020-11-19 Thread gustavo at ugr dot es via Gcc-bugs
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.

[Bug c++/97907] error when compiling with optimization

2020-11-19 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97907 --- Comment #1 from Andreas Schwab --- f1 invokes undefined behaviour by modifying an input-only asm operand.