[Bug c++/89429] ICE with __func__

2019-02-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89429 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c++/89429] ICE with __func__

2019-02-21 Thread vakevk at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89429 --- Comment #2 from Valentin --- Comment on attachment 45782 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45782 Example code template void f(Function&& function) { // `0` is not special. Can be any value of any type. function(0)

[Bug c++/89429] ICE with __func__

2019-02-21 Thread vakevk at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89429 --- Comment #1 from Valentin --- Sorry, this was the wrong attachment. The proper code is: template void f(Function&& function) { // `0` is not special. Can be any value of any type. function(0); } // No error when this template para