[Bug c++/97907] New: 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 Bug ID: 97907 Summary: error when compiling with optimization Product: gcc Version: 10.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[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 libstdc++/91488] [9/10/11/12 Regression] char_traits::length causes "inlining failed in call to always_inline" error with -fgnu-tm -O2 -std=c++17

2021-06-07 Thread gustavo at ugr dot es via Gcc-bugs
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

[Bug libstdc++/91488] [9/10/11/12 Regression] char_traits::length causes "inlining failed in call to always_inline" error with -fgnu-tm -O2 -std=c++17

2021-06-07 Thread gustavo at ugr dot es via Gcc-bugs
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/

[Bug libstdc++/91488] [9/10/11/12 Regression] char_traits::length causes "inlining failed in call to always_inline" error with -fgnu-tm -O2 -std=c++17

2021-06-07 Thread gustavo at ugr dot es via Gcc-bugs
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