[Bug c++/67762] [C++1z] 'not a constant expression" errors only with -fsanitize=undefined

2022-12-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67762 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/67762] [C++1z] 'not a constant expression" errors only with -fsanitize=undefined

2021-11-10 Thread curdeius at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67762 --- Comment #8 from Curdeius Curdeius --- A different (rather small) reproduce. https://godbolt.org/z/bz9sTd34o It fails with all the versions of gcc from at least 7 (the above code needs `auto` in template non-type parameter) to trunk from

[Bug c++/67762] [C++1z] 'not a constant expression" errors only with -fsanitize=undefined

2021-04-27 Thread dushistov at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67762 --- Comment #7 from Evgeniy Dushistov --- Here simple example extracted from Qt 6 git: ``` template struct Prop { void notify() { if constexpr (Signal != nullptr) { } } }; class QObjectPrivate { public:

[Bug c++/67762] [C++1z] 'not a constant expression" errors only with -fsanitize=undefined

2015-09-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67762 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/67762] [C++1z] 'not a constant expression" errors only with -fsanitize=undefined

2015-09-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67762 --- Comment #2 from Marek Polacek --- The compile-time error goes away when adding -fno-sanitize=null,returns-nonnull-attribute,nonnull-attribute to the command-line options.

[Bug c++/67762] [C++1z] 'not a constant expression" errors only with -fsanitize=undefined

2015-09-29 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67762 --- Comment #3 from Marek Polacek --- Not reducing anymore; creduce dies for me :(.

[Bug c++/67762] [C++1z] 'not a constant expression" errors only with -fsanitize=undefined

2015-09-29 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67762 --- Comment #4 from Markus Trippelsdorf --- (In reply to Marek Polacek from comment #3) > Not reducing anymore; creduce dies for me :(. Yes, I was unsuccessful in reducing it with creduce, too. (Well, clang doesn't support C++ concepts yet, so

[Bug c++/67762] [C++1z] 'not a constant expression" errors only with -fsanitize=undefined

2015-09-29 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67762 Markus Trippelsdorf changed: What|Removed |Added Attachment #36415|0 |1 is obsolete|

[Bug c++/67762] [C++1z] 'not a constant expression" errors only with -fsanitize=undefined

2015-09-29 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67762 Markus Trippelsdorf changed: What|Removed |Added Attachment #36417|0 |1 is obsolete|