[Bug c++/92062] [9/10 Regression] ODR-use by static_assert ignored for static member of class template

2019-10-21 Thread mpolacek at gcc dot gnu.org
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

[Bug c++/92062] [9/10 Regression] ODR-use by static_assert ignored for static member of class template

2019-10-11 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92062 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug c++/92062] [9/10 Regression] ODR-use by static_assert ignored for static member of class template

2019-10-11 Thread mpolacek at gcc dot gnu.org
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

[Bug c++/92062] [9/10 Regression] ODR-use by static_assert ignored for static member of class template

2019-10-11 Thread mpolacek at gcc dot gnu.org
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

[Bug c++/92062] [9/10 Regression] ODR-use by static_assert ignored for static member of class template

2019-10-11 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92062 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|