https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93870
Marek Polacek changed:
What|Removed |Added
Resolution|--- |FIXED
Status|ASSIGNED
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93870
Marek Polacek changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned
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.
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93870
Marek Polacek changed:
What|Removed |Added
Priority|P3 |P2
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.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93870
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|