[Bug c++/99493] Address of template parameter object is not a valid template argument

2024-01-18 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99493 --- Comment #8 from Johel Ernesto Guerrero Peña --- Thank you!

[Bug c++/99493] Address of template parameter object is not a valid template argument

2024-01-18 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99493 Patrick Palka changed: What|Removed |Added Status|NEW |RESOLVED Target Milestone|---

[Bug c++/99493] Address of template parameter object is not a valid template argument

2024-01-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99493 --- Comment #6 from GCC Commits --- The releases/gcc-13 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:4ffb23975b32bfd285915c3d6659b837868b5aa9 commit r13-8235-g4ffb23975b32bfd285915c3d6659b837868b5aa9 Author: Patrick Palka

[Bug c++/99493] Address of template parameter object is not a valid template argument

2024-01-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99493 --- Comment #5 from GCC Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:68cea2d32a9fd525154b6a48042e5835d4c5e371 commit r14-8189-g68cea2d32a9fd525154b6a48042e5835d4c5e371 Author: Patrick Palka Date:

[Bug c++/99493] Address of template parameter object is not a valid template argument

2022-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99493 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/99493] Address of template parameter object is not a valid template argument

2022-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99493 Andrew Pinski changed: What|Removed |Added URL|https://godbolt.org/z/9zYo8 | |f

[Bug c++/99493] Address of template parameter object is not a valid template argument

2021-03-15 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99493 --- Comment #2 from Johel Ernesto Guerrero Peña --- Looks like you can get away by instead passing around a pointer to the address of the template parameter object: https://godbolt.org/z/o3Paz1. ```C++ struct A{}; templateconstexpr const

[Bug c++/99493] Address of template parameter object is not a valid template argument

2021-03-14 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99493 --- Comment #1 from Johel Ernesto Guerrero Peña --- Slightly simplified: https://godbolt.org/z/rv97Gh. ```C++ struct A{}; templateconstexpr const A*tpo{}; templatestruct B{}; B>b; ``` ``` :4:10: error: the address of 'A{}' is not a valid