https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92062
--- Comment #5 from Marek Polacek ---
Author: mpolacek
Date: Mon Oct 21 18:45:45 2019
New Revision: 277266
URL: https://gcc.gnu.org/viewcvs?rev=277266&root=gcc&view=rev
Log:
PR c++/92062 - ODR-use ignored for static member of class template.
ha
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92062
Marek Polacek changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92062
--- Comment #4 from Marek Polacek ---
Candidate fix:
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -6542,6 +6542,7 @@ check_valid_ptrmem_cst_expr (tree type, tree expr,
static bool
has_value_dependent_address (tree op)
{
+ STRIP_ANY_LOCATION_WRAPPE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92062
--- Comment #3 from Marek Polacek ---
Looks like the issue is that the condition of the static_assert
(&VIEW_CONVERT_EXPR(x)) is no longer considered
instantiation_dependent_expression_p, because of the location wrapper. Before
r267272 the condi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92062
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|