https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19741
Jonathan Wakely changed:
What|Removed |Added
Last reconfirmed|2006-01-15 21:09:27 |2018-4-23
--- Comment #7 from
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19741
--- Comment #6 from Andrew Pinski pinskia at gcc dot gnu.org 2012-01-20
02:56:03 UTC ---
We get on the trunk:
t.cc: In function ‘int main()’:
t.cc:21:33: error: no matching function for call to ‘Opint::Exec(int,
unresolved overloaded function
--- Comment #5 from pinskia at gcc dot gnu dot org 2005-10-04 02:32 ---
The error message was changed by:
Fixed by:
* error.c (dump_type) UNKNOWN_TYPE: Print reworded message.
* g++.dg/overload/unknown1.C: New.
But reading comment 4, that will not fix the issue fully.
--- Additional Comments From bangerth at dealii dot org 2005-02-01 14:27
---
This is in fact true. There is a mismatch between error messages for
template function arguments and non-templates:
void foo1();
template typename void foo2();
--- Additional Comments From gdr at integrable-solutions dot net
2005-02-01 16:04 ---
Subject: Re: suboptimal error message for template functions (as opposed to
non-templates)
bangerth at dealii dot org [EMAIL PROTECTED] writes:
| This is in fact true. There is a mismatch between
--- Additional Comments From bangerth at dealii dot org 2005-02-01 17:30
---
Except that, of course, in the present case the overload set contains
only a single function (foo2 isn't overloaded, and we have specified
all template arguments). Which should make it even easier to handle