[Bug c++/103732] Incorrect constexpr evaluation of runtime expression

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103732 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/103732] Incorrect constexpr evaluation of runtime expression

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103732 --- Comment #4 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > >constexpr int y = s0.C; > > > The above is now valid due to https://wg21.link/p2280r2 (which was acecpted > as a defect report against all C++ version

[Bug c++/103732] Incorrect constexpr evaluation of runtime expression

2024-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103732 --- Comment #3 from Andrew Pinski --- >constexpr int y = s0.C; The above is now valid due to https://wg21.link/p2280r2 (which was acecpted as a defect report against all C++ versions). >constexpr int z = a[i]->C; I think this is inva

[Bug c++/103732] Incorrect constexpr evaluation of runtime expression

2021-12-15 Thread gonzalo.gadeschi at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103732 --- Comment #2 from gnzlbg --- > ICC and MSVC both accept it like GCC That's correct, please feel free to report the bug to them as well.

[Bug c++/103732] Incorrect constexpr evaluation of runtime expression

2021-12-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103732 --- Comment #1 from Andrew Pinski --- ICC and MSVC both accept it like GCC