[Bug c++/96746] Type Casting in template function should not be type-dependent if the type of the conversion result is not type-dependent.

2020-08-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96746 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/96746] Type Casting in template function should not be type-dependent if the type of the conversion result is not type-dependent.

2021-01-01 Thread masamitsu.murase at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96746 Masamitsu MURASE changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/96746] Type Casting in template function should not be type-dependent if the type of the conversion result is not type-dependent.

2020-11-04 Thread masamitsu.murase at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96746 --- Comment #2 from Masamitsu MURASE --- Thank you very much for your reply, Marek Polacek. I'm sorry, but I cannot understand your comment clearly. As you said, I also think that my example should be treated as ill-formed program. It **compiles

[Bug c++/96746] Type Casting in template function should not be type-dependent if the type of the conversion result is not type-dependent.

2020-11-04 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96746 --- Comment #3 from Jonathan Wakely --- The standard says "no diagnostic required". It's not a bug if a compiler accepts the code.

[Bug c++/96746] Type Casting in template function should not be type-dependent if the type of the conversion result is not type-dependent.

2020-11-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96746 --- Comment #4 from Jakub Jelinek --- What Marek explained is that your testcase is buggy, but it may or may not be diagnosed, unless the template is instantiated. If you instantiate such template, it has to be rejected by all implementations, b