https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89537
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89537
--- Comment #7 from Marek Polacek ---
Author: mpolacek
Date: Fri Mar 1 15:57:46 2019
New Revision: 269318
URL: https://gcc.gnu.org/viewcvs?rev=269318&root=gcc&view=rev
Log:
PR c++/89537 - missing location for error with non-static membe
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89537
--- Comment #6 from Jonathan Wakely ---
(In reply to Marek Polacek from comment #5)
> 89537.C:9:18: error: invalid use of non-static member function ‘void B<
> , ,
> , >::keys() [with _Tp =
> int; = int; = A;
> = A]’
> 9 | : keys(p1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89537
Marek Polacek changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89537
--- Comment #5 from Marek Polacek ---
With this patch
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index fb67d905acd..d9073d7c23d 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -4246,7 +4246,7 @@ resolve_args (vec *args, tsubst_flags_t
complain
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89537
--- Comment #4 from Marek Polacek ---
loc is UNKNOWN_LOCATION:
(gdb) up
#1 0x00b98003 in invalid_nonstatic_memfn_p (loc=0, expr=,
complain=3) at /home/mpolacek/src/gcc/gcc/cp/typeck.c:1896
1896 error_at (loc, "inva
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89537
--- Comment #3 from Marek Polacek ---
template class A {};
template class B;
class C {
using mapped_type = int;
public:
template
C(B, A> *p1, unsigned)
: keys(p1->keys), values(p1->values) {}
A keys;
A values;
};
class D {
pub
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89537
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89537
--- Comment #1 from Jonathan Wakely ---
Created attachment 45855
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45855&action=edit
gzipped unreduced testcase