[Bug c++/79531] bad location when trying to define undeclared method

2021-08-27 Thread tromey at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79531

--- Comment #3 from Tom Tromey  ---
(In reply to Andrew Pinski from comment #2)
> Which seems ok, unless I am missing something.

Looks good to me too, IMO you could close this bug.

[Bug c++/79531] bad location when trying to define undeclared method

2021-08-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79531

--- Comment #2 from Andrew Pinski  ---
Since GCC 8, we produce:
:8:16: error: 'virtual void derived::method2()' marked 'override', but
does not override
   virtual void method2() override;
^~~
:11:6: error: no declaration matches 'void derived::n()'
 void derived::n ()
  ^~~
:11:6: note: no functions named 'void derived::n()'
:6:8: note: 'struct derived' defined here
 struct derived : public base {
^~~

Which seems ok, unless I am missing something.

[Bug c++/79531] bad location when trying to define undeclared method

2017-02-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79531

Martin Sebor  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-02-17
 CC||msebor at gcc dot gnu.org
   See Also||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=79551
 Ever confirmed|0   |1

--- Comment #1 from Martin Sebor  ---
Confirmed with today's top of trunk.  See also bug 79551 for a similar problem
in a different error.