[Bug c++/93870] [8/9/10 Regression] User-defined conversion function not working in evaluation of template argument

2020-03-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93870 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/93870] [8/9/10 Regression] User-defined conversion function not working in evaluation of template argument

2020-03-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93870 Jakub Jelinek changed: What|Removed |Added Target Milestone|8.4 |8.5 --- Comment #6 from Jakub Jelinek

[Bug c++/93870] [8/9/10 Regression] User-defined conversion function not working in evaluation of template argument

2020-02-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93870 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/93870] [8/9/10 Regression] User-defined conversion function not working in evaluation of template argument

2020-02-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93870 --- Comment #4 from Marek Polacek --- Actually perhaps we should create an IMPLICIT_CONV_EXPR for *any* value-dependent argument.

[Bug c++/93870] [8/9/10 Regression] User-defined conversion function not working in evaluation of template argument

2020-02-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93870 --- Comment #3 from Marek Polacek --- Completely untested: --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -7082,7 +7082,7 @@ convert_nontype_argument (tree type, tree expr, tsubst_flags_t complain) create a TARGET_EXPR, but in a template

[Bug c++/93870] [8/9/10 Regression] User-defined conversion function not working in evaluation of template argument

2020-02-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93870 Marek Polacek changed: What|Removed |Added Priority|P3 |P2

[Bug c++/93870] [8/9/10 Regression] User-defined conversion function not working in evaluation of template argument

2020-02-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93870 --- Comment #2 from Marek Polacek --- Clearly we're trying to take the address of a TARGET_EXPR: TARGET_EXPR That's bad and we've had PRs about this in the past, e.g. Bug 87145. I suspect the fix might be along the same lines.

[Bug c++/93870] [8/9/10 Regression] User-defined conversion function not working in evaluation of template argument

2020-02-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93870 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|