[Bug c++/78022] constexpr int template rejected unless constructor is used before hand

2020-08-17 Thread fiesh at zefix dot tv
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78022 fiesh at zefix dot tv changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/78022] constexpr int template rejected unless constructor is used before hand

2018-12-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78022 --- Comment #7 from Marek Polacek --- Or, let's say, started to be accepted.

[Bug c++/78022] constexpr int template rejected unless constructor is used before hand

2018-12-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78022 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/78022] constexpr int template rejected unless constructor is used before hand

2018-12-06 Thread fiesh at zefix dot tv
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78022 --- Comment #5 from fiesh at zefix dot tv --- The code still does not compile with gcc-8.2 but does compile on trunk now! Conversely, clang consistently refuses to compile it since clang-5. So I guess this can be closed, unless clang is

[Bug c++/78022] constexpr int template rejected unless constructor is used before hand

2018-02-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78022 Jonathan Wakely changed: What|Removed |Added Last reconfirmed|2016-10-19 00:00:00 |2018-2-12 Known to fail|

[Bug c++/78022] constexpr int template rejected unless constructor is used before hand

2018-01-30 Thread fiesh at zefix dot tv
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78022 --- Comment #3 from fiesh at zefix dot tv --- Interestingly, clang-5 no longer compiles this code: :28:15: error: constexpr variable 'b1' must be initialized by a constant expression constexpr B b1{0};

[Bug c++/78022] constexpr int template rejected unless constructor is used before hand

2016-10-18 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78022 Andrew Pinski changed: What|Removed |Added Keywords||rejects-valid