https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91112

            Bug ID: 91112
           Summary: Bad error message for virtual function of a template
                    class. Wrong "required from here" line number
           Product: gcc
           Version: 8.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ivan.kharpalev at gmail dot com
  Target Milestone: ---

https://godbolt.org/z/orxMIj
I expect to see number of the line that triggers instantiation.
gcc-7 and clang show it.


P.S.
It even does not show bad method invocation line if it was called via base
class pointer.
https://godbolt.org/z/-SN5n5

It only shows call line for the class itself
https://godbolt.org/z/kmaUQt

Reply via email to