[Bug c++/90426] [P0732] Error constructing non-type template parameter from a prvalue

2019-05-13 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90426 --- Comment #6 from Marek Polacek --- I posted a patch to improve diagnostics for this particular case: https://gcc.gnu.org/ml/gcc-patches/2019-05/msg00529.html

[Bug c++/90426] [P0732] Error constructing non-type template parameter from a prvalue

2019-05-11 Thread mateusz.pusz at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90426 --- Comment #5 from Mateusz Pusz --- (In reply to Mateusz Pusz from comment #3) > (In reply to Marek Polacek from comment #1) > > This compiles if I use {} instead of (): > > > > struct gram : unit {}; > > (In reply to Marek Polacek from commen

[Bug c++/90426] [P0732] Error constructing non-type template parameter from a prvalue

2019-05-11 Thread mateusz.pusz at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90426 --- Comment #4 from Mateusz Pusz --- (In reply to Marek Polacek from comment #1) > This compiles if I use {} instead of (): > > struct gram : unit {}; I know that it compiles fine in the following cases: struct gram : unit {}; struct gram : uni

[Bug c++/90426] [P0732] Error constructing non-type template parameter from a prvalue

2019-05-11 Thread mateusz.pusz at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90426 --- Comment #3 from Mateusz Pusz --- (In reply to Marek Polacek from comment #1) > This compiles if I use {} instead of (): > > struct gram : unit {}; (In reply to Marek Polacek from comment #2) > I think this is invalid. [temp.arg]p2: > "In a

[Bug c++/90426] [P0732] Error constructing non-type template parameter from a prvalue

2019-05-10 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90426 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/90426] [P0732] Error constructing non-type template parameter from a prvalue

2019-05-10 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90426 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment